It has only to do with the act of correct observation, and by I mean a physical contact with all sorts of objects through all the senses

Golang 反射使用的一些技巧

Some tips for using reflection in Golang

What 类型(Type)与种类(Kind) Value 值 反射的使用 三个规则 CanSet 和 CanAddr 方法区别 Elem() 和 Indirect() 的区别 场景和技巧 初始化一个值 通过反射修改变量的值 类型获取 Struct 使用 指针 Map 使用 数组使用 Interfa

golang 指针操作

golang pointer operation

在 go 语言中每个变量都有自己的地址,记录变量地址的类型称为指针类型 & 获取变量的地址,生成一个 *T 的指针类型指向取值变量 x x 必须是可以寻址的 * 获取指针指向的值 如果指针是 nil 会 panic 如果变量不是指针类型会报编译错误 invalid operation canno