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

Go-VSCode -Autocomplete and Auto-import

Go - mail