![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
GO
Thinking7714707
这个作者很懒,什么都没留下…
展开
-
Go mod 简明教程(Go语言依赖包管理工具)
Go mod 的使用 1、Go1.11及以后版本才能使用。 2、Go1.11需要设置环境变量 GO111MODULE 为 on(新特性开关,按照Go语言惯例,mod首次在go1.11版本中使用,go1.13及以后版本这个设置可以不用了)。 3、可以设置模块代理:设置环境变量 GOPROXY 的值为代理网址,目前可用的模块公共代理网址有:https://goproxy.iohttps://g...原创 2019-12-17 22:28:56 · 913 阅读 · 0 评论 -
golang类型转换 string、int、int64 float 互相转换
#string到int int,err := strconv.Atoi(string) #string到int64 int64, err := strconv.ParseInt(string, 10, 64) //第二个参数为基数(2~36), //第三个参数位大小表示期望转换的结果类型,其值可以为0, 8, 16, 32和64, //分别对应 int, int8, int16,...原创 2019-10-08 11:37:41 · 1348 阅读 · 0 评论