Go Get : "module declares its path as : xxxxxxx" 声明与路径不匹配 作者: 王十三 时间: 2020-08-15 分类: GoLang 评论 直接修改go.mod 文件 replace ( github.com/golang/lint v0.0.0-20190313153728-d0100b6bd8b3 => golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3 github.com/testcontainers/testcontainer-go v0.0.2 => github.com/testcontainers/testcontainers-go v0.0.2 github.com/testcontainers/testcontainers-go v0.0.2 => github.com/testcontainers/testcontainer-go v0.0.2 golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3 => github.com/golang/lint v0.0.0-20190313153728-d0100b6bd8b3 ) 转换声明与路径 即可 (需要带版本号)
Go Micro 环境 (MAC 环境 保持更新) 作者: 王十三 时间: 2020-08-14 分类: GoLang 评论 ##安装 Micro 环境 相关文档 https://www.kancloud.cn/linimbus/go-micro/529024 ###1. 安装Go-Micro服务 官网地址: https://github.com/micro/micro ``` # MacOS curl -fsSL https://raw.githubusercontent.com/micro/micro/master/scripts/install.sh | /bin/bash # Linux wget -q https://raw.githubusercontent.com/micro/micro/master/scripts/install.sh -O - | /bin/bash # Windows powershell -Command "iwr -useb https://raw.githubusercontent.com/micro/micro/master/scripts/install.ps1 | iex" ``` PS : 版本查看 https://github.com/micro/micro/releases curl -s https://github.com/micro/micro/releases | grep \"tag_name\"