golang 打印变量类型

直接使用reflect的TypeOf方法就可以了

模块是:    "reflect"

fmt.Println(reflect.TypeOf(var)) 
原文地址:https://www.cnblogs.com/unqiang/p/11289664.html