golang 打印变量类型

fmt.Println("type:", reflect.TypeOf(err.Error()))

  

原文地址:https://www.cnblogs.com/huanhang/p/8350788.html