几个不错的golang工具包

日常开发中进行数据类型转换是一个很常见的问题,比较常见的是map->struct , struct->map 
json->map 。。。同时还需要一些字符串操作(合并,分割),以下整理了几个不错的工具

简单说明

structs struct与map的处理 
mapstructure map 与struct的处理 
stew 一些方便的map,string 操作包 
mergo 类型合并的

参考资料

http://github.com/fatih/structs 
http://github.com/mitchellh/mapstructure 
http://github.com/stretchr/objx 
http://github.com/stretchr/stew 
http://github.com/imdario/mergo

原文地址:https://www.cnblogs.com/rongfengliang/p/14031320.html