随笔分类 -  golang

摘要:1、rm -rf /usr/local/go 2、wget https://dl.google.com/go/go1.13.linux-amd64.tar.gz 3、tar -C /usr/local -xzf go1.13.linux-amd64.tar.gz go version即可看版本是否有 阅读全文
posted @ 2020-01-08 16:24 _DongGe 阅读(624) 评论(0) 推荐(0)
摘要:go micro web端连接services时,第一次访问提示500(broken pipe),排查发现客户端请求services时返回 {"id":"go.micro.client","code":408,"detail":"call timeout: context deadline exce 阅读全文
posted @ 2019-10-10 10:56 _DongGe 阅读(5605) 评论(4) 推荐(0)
摘要:1、安装micro 需要使用GO1.11以上版本 #linux 下 export GO111MODULE=on export GOPROXY=https://goproxy.cn # 使用如下指令安装 go get -u -v github.com/micro/micro go get -u -v 阅读全文
posted @ 2019-09-05 11:21 _DongGe 阅读(646) 评论(0) 推荐(0)
摘要:1、安装库文件protobuf,地址:https://github.com/protocolbuffers/protobuf/releases 我电脑是deepin 64位的,所以我直接下载https://github.com/protocolbuffers/protobuf/releases/do 阅读全文
posted @ 2019-09-05 10:34 _DongGe 阅读(715) 评论(0) 推荐(0)
摘要:docker-compose.yml 安装并运行配置 配置 1)访问http://IP:3000/ 2) 点击登录 3)更新配置: a、SSH 服务器域名:IP b、SSH Port:222 c、Gitea URL:http://IP:3000/ d、配置gitea管理员账号密码并点击安装 停止服务 阅读全文
posted @ 2019-08-14 14:13 _DongGe 阅读(1804) 评论(0) 推荐(0)
摘要:github地址:https://github.com/swaggo/gin-swagger 1、下载swag 2、在main.go所在目录执行 生成docs/doc.go以及docs/swagger.json,docs/swagger.yaml 3、下载gin-swagger 然后在路由文件引入 阅读全文
posted @ 2019-08-14 14:04 _DongGe 阅读(6137) 评论(0) 推荐(0)