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 Making a Golang Vanity URL by Jon Betti 
Post details
So, GitHub just got bought by Microsoft and this got me and a bunch of people thinking about the dependence of Go on GitHub as a piece of…

Recommended read: Making a Golang Vanity URL. So, GitHub just got bought by Microsoft… | by Jon Betti | Medium https://medium.com/@JonNRb/making-a-golang-vanity-url-f56d8eec5f6c

 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?

Recommended read: The Code Library | Vanity URL for Go packages https://ayada.dev/posts/vanity-url-for-go-packages/

 Note

Is there a standard way to do content-negotiation in #Go? Preferably not as part of a Web framework, but as a standalone library

 Bookmark

I've recently been doing similar with some of my utilities, albeit with an informal comparison between Ruby and Go versions, but would agree that for large, production critical scrips, this is a great way to do it

Recommended read: Rewriting Bash scripts in Go using black box testing https://stackoverflow.blog/2022/03/09/rewriting-bash-scripts-in-go-using-black-box-testing/