摘要:
fmt.Println(reflect.TypeOf(var)) switch xxx.(type){ case int:.... case float32:... case float64:... case string:... } 对type的枚举,不能使用fallthrough,且float3 阅读全文
posted @ 2018-05-03 13:57
流失的痕迹
阅读(346)
评论(0)
推荐(0)
摘要:
获取当前时间 func Now 1 Now returns the current local time. func (Time) UTC 1 UTC returns t with the location set to UTC. func (Time) Unix 1 Unix returns t 阅读全文
posted @ 2018-05-03 08:58
流失的痕迹
阅读(10921)
评论(0)
推荐(0)

浙公网安备 33010602011771号