反射reflect 简介反射reflect 变量的内在机制变量包包含了类型信息,和值信息 类型信息是静态的元信息是预先定义好的 值信息,是程序运行过程中动态改变的 反射的使用reflect 包封装了反射相关的方法 reflect.TypeOf 是静态的 reflect.ValueOf 是动态的 空接口与反射 #go 反射reflect https://tsy244.github.io/2024/08/14/go/反射reflect/ Author August Rosenberg Posted on August 14, 2024 Licensed under DedeCMSV5.7.114后台sys_verizes.php-rce Previous RPC Next