38

gopl 反射2-来玩魔王的咚!

 4 years ago
source link: https://blog.51cto.com/steed/2398744
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
使用reflect.Value来设置值:判断值可寻址的方法,设置值的方法,注意事项,判断值可修改的方法;解码 S 表达式:词法分析器,函数实现,封装解析器;访问结构体字段标签:http服务端解析请求参数并完成结构体字段填充;显示类型的方法;慎用反射的三个原因

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK