Didi Tech
May 17, 2019 · Fundamentals
Understanding Go Reflection: Types, Values, and Practical Applications
Go’s reflection, accessed via the reflect package’s TypeOf and ValueOf functions, lets programs inspect and modify runtime types and values—including fields, tags, and slices—while obeying settable rules, enabling generic utilities such as JSON serialization, deep equality checks, and dynamic ORM-like behavior.
DeepEqualGoInterface
0 likes · 27 min read