reflect.Type.Elem() 可以返回元素的类型,例如指针类型,返回不带指针的类型。 reflect.Value.Elem() 是获取指向值的引用。 type name struct { } func (n name) Print(str string) { } func main([......]继续阅读
reflect.Type.Elem() 可以返回元素的类型,例如指针类型,返回不带指针的类型。 reflect.Value.Elem() 是获取指向值的引用。 type name struct { } func (n name) Print(str string) { } func main([......]继续阅读
痴者工良
高级程序员劝退师
小小程序员,主要研究微服务架构、kubernetes、istio、Devops 等,主要语言是 C#、Go。日常喜欢看书、写博客、摄影、运动、看风景。
COPYRIGHT © 2023 whuanle.cn. ALL RIGHTS RESERVED.
Theme Kratos Made By Seaton Jiang