go语言 支不支持扩展方法 func (this *time.Time) GetTimeNow() string { return this.Now().Format("2006-01-02 15:04:05") }
有疑问加站长微信联系(非本文作者)

go语言 支不支持扩展方法 func (this *time.Time) GetTimeNow() string { return this.Now().Format("2006-01-02 15:04:05") }
有疑问加站长微信联系(非本文作者)
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
`单行代码`
试试 匿名结构体
这个好!