Go语言反射 2022-01-22 2022-02-22Golang1 小时读完 (大约6762个字)引入 先看官方Doc中Rob Pike给出的关于反射的定义: 123Reflection in computing is the ability of a program to examine its own structure, particularly through types; it’s a form of metaprogramming. It’s also a great source of confusion.(在计算机领域,反射是一种让程序——主要是通过类型——理解其自身结构的一种能力。它是元编程的组成之一,同时它也是一大引人困惑的难题。) 反射 阅读更多