Golang - get object type

package main

import (
"fmt"
"reflect"
)

func main() {

getObjType()
}

func getObjType(){

tst := "string"
fmt.Println(reflect.TypeOf(tst))
}

Comments

Popular posts from this blog

Flutter - "PlatformException(no_fragment_activity, local_auth plugin requires activity to be a FragmentActivity., null)"

Dart syntax - initSate,Build,deactive, Dispose