feat(Go-StudyExample):2020/12/28:新增cast类型转换工具包

This commit is contained in:
Huangzj
2020-12-28 09:51:01 +08:00
parent 47b8c262c5
commit 15ff62152d
3 changed files with 49 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
获取包命令:go get github.com/spf13/cast
To..方法直接返回转换后的类型
To..E方法,返回转换后的类型和报错信息