获取包命令:go get github.com/spf13/cast To..方法直接返回转换后的类型 To..E方法,返回转换后的类型和报错信息 参考 go每日一库:https://github.com/darjun/go-daily-lib