https://github.com/fatih/structs
使用方式:
m:= structs.Map(server)
.Values()获取值
..
go 如何把结构体变成一个map
猜你喜欢
转载自hhg08.iteye.com/blog/2286741
今日推荐
周排行