![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
golang
小菜希
这个作者很懒,什么都没留下…
展开
-
用golang生成6位数的唯一id
用golang生成6位数的唯一id,5分钟生成八十万唯一的id。package randid_testimport ( //"database/sql" "fmt" "math/rand" "testing" "time" "io" "os" "strconv" //_ "github.com/go-sql-drive原创 2018-01-11 17:27:11 · 11155 阅读 · 0 评论 -
win下Golang环境搭建笔记和包安装
1.下载Golanghttps://studygolang.com/dl 我这下载的是msi版本 https://studygolang.com/dl/golang/go1.9.2.windows-amd64.msi我的安装路径是 D:\soft\Go2.配置系统环境变量 GOROOT,就是安装路径2.1 添加到path%GOROOT%\bin3.配置 GOPATH,就是你的项目理解,如果有多个原创 2017-12-28 11:49:26 · 6818 阅读 · 0 评论