我使用的是gin-gonic,每次尝试使用go run main.go时,都会出现以下编译错误:
不能使用func(*"github.com/carlqt/geodude/vendor/github.com/gin-gonic/gin".Context)) (键入properties.Pong作为“github.com/gonic/gin”.Handl
我想从一个私有的golang注册表中获取我的依赖项。 通过使用GOPROXY。 我希望确保所有依赖项都来自该私有注册表。我现在找到的唯一方法就是 go get -v -t github.com/opentracing/opentracing-go@fakeversion 它将返回 go get: github.com/opentracing-go@fakeversion: invalid version: reading http://myprivateregistry.com 404 Not found