Golang 开发经验汇总 - xw332/xw332.github.io GitHub Wiki
Golang 开发环境搭建
查看全部环境变量值:go env
Golang 自动下载所有依赖包
https://www.cnblogs.com/landv/p/10948227.html
https://blog.csdn.net/weixin_30436891/article/details/95664229
禁止Golang 编译时报错
https://www.liangzl.com/get-article-detail-127928.html
Golang 测试
go test -run=TestMain
go test .
Android 开发环境搭建
配置全局环境变量,然后用命令 ndk-which gcc 测试,如果正常执行就是 ndk 配置成功了
gomobile 开发环境搭建
go env -w GO111MODULE=auto
下面的依赖,可能需要FQ
export https_proxy=http://localhost:1087
go get golang.org/x/mobile/cmd/gobind
go get golang.org/x/mobile/cmd/gomobile
/Users/xxxxx/go/bin 下需要有gomobile和gobind的文件
gomobile 编译
在$gopath的src下建项目文件夹,然后进bin运行命令
gomobile bind -target=android hello
gomobile bind -target=ios hello
编译好的文件就在当前文件夹,有framework、jar、aar
可能的错误,“无法打开clang,因为无法验证开发者”,需要在安全性与隐私中,设置“App Store和被认可的开发人员”
加密数字货币的签名与验签
开源项目
简单易用的 Go 语言跨平台图形界面库
https://mp.weixin.qq.com/s/tIeH9Sc7qPdLNYEk_IrRJg
一款简洁高性能的 go-Web 开发框架
https://mp.weixin.qq.com/s/Mo2S5BxPOGYrUyr_sj0B-g
Go语言Gin框架的优秀应用案例,开源Web项目骨架了解一下
https://mp.weixin.qq.com/s/n4-tqz0iIebnRSqQBEtCig
一款基于 Git 的分布式 Bug 管理工具
https://mp.weixin.qq.com/s/s5tUgf6wQ4fPTE-bMOkdtQ
云原生用户认证和管理系统,弹性伸缩架构真香