hhow09 / gobyexample

https://hhow09.github.io/gobyexample/
0 stars 0 forks source link

Reflection #22

Open hhow09 opened 1 year ago

hhow09 commented 1 year ago

Reflection

Overview

Kind

Although there are infinitely many types, there are only a finite number of kinds of type: the basic types Bool, String and all the numbers; the aggregate types Array and Struct, the reference types Chan, Func, Ptr, Slice and Map; interface types; and finally Invalid, meaning no value at all (The zero value of a reflect.Value has kind Invalid).

Reference

hhow09 commented 1 year ago

Golang的反射reflect深入理解和示例

hhow09 commented 4 months ago

addressable value

addressable

v := afunc()
&v