Tag go

 Note

Do I know anyone doing #Go that handles go get on their production API URL, and it then resolves the SDK with that base URL? I can see this being a fairly straightforward thing to do based on the ?go-get=1, but wondering how this would work for applications deployed to different environment, but built from the same source code πŸ€”

 Bookmark

Bookmarked Vanity URL for Go packages
Post details
Introduction If you have been working with Go programming language for a while, you would have noticed that a lot of open source packages that you import start with github.com/…. You would then use go get command to download the package and add it to your go.mod file. For instance: $ go get -u github.com/abvarun226/goiplookup What if you did not want this dependency on Github and rather wanted to host your own git server?

 Note

Does anyone in the #Go community know if go:embed is meant to work when using go install? I've got a repo that doesn't appear to embed the template when go installing it with go version go1.17.6 linux/amd64, only when go building it

Edit: looks like it's solved itself, and it does work, woops!