Article 32
Liked Why to prefer `t.Cleanup` to `defer` in tests with subtests using `t.Parallel` Post details Go’s <code>defer</code> and <code>t.Cleanup</code> have similar...
View ArticleSetting up a matrix for GitHub Actions with Go's `go.mod` and specific versions
When you're building a library or set of tooling in Go, you may want to test against different versions of Go to give confidence in the project for both you and your users. I set about doing this today...
View ArticleArticle 30
Liked Shrink your Go binaries with this one weird trick Post details Ok, I lied, there's no weird trick. However, you can easily reduce a Go binary size by more than 6 times with some flags and common...
View ArticleArticle 29
Liked GitHub - simondrake/gomodifytags: neovim plugin to run gomodifytags Post details neovim plugin to run gomodifytags. Contribute to simondrake/gomodifytags development by creating an account on...
View ArticleArticle 28
Liked Talk Notes: Advanced JSON Handling in Go by Jonathan Hall Post details For more content like this, buy my in-progress eBook, Data Serialization in Go, and get updates immediately as they are...
View ArticleArticle 27
Liked tozd / go / errors · GitLab Post details A Go package providing errors with a stack trace and structured details. https://pkg.go.dev/gitlab.com/tozd/go/errors
View ArticleGotchas with pointing Go modules to a fork, when building an installable module
This morning I cut a release of dependency-management-data which ended up horribly breaking all consumers of the application. As I flagged in the tracking issue for this, trying to install the CLI...
View ArticleArticle 25
Liked GitHub - tdabasinskas/go-backstage: Go client library for accessing the Backstage REST API Post details Go client library for accessing the Backstage REST API - GitHub -...
View ArticleArticle 24
Liked How to find out which Go version built your binary | Dave Cheney Post details
View ArticleWhich version of Go was used to compile this binary?
Sometimes it can be handy to work out what version of Go a given binary was complied with, for instance to find out if it's affected by any CVEs. One option we can follow is this post, where we can dig...
View ArticleHow we reduced oapi-codegen's dependency overhead by ~84%
As I announced recently, oapi-codegen, the OpenAPI to Go code generator that I co-maintain, will soon release a v2 release to allow us to reduce the size of the library's dependencies by roughly ~84%....
View ArticlePerforming a v2 release of a Go module
On Wednesday, I'll be releasing oapi-codegen v2, which is my first v2 release of a Go module. To prepare for this I've been practicing doing a v2 release, so thought I'd write about as a form of...
View ArticleGetting Go modules to work with nested GitLab groups
While trying to test for How to publish a v2 version of a Go library, I found some issues with trying to import the new Go module I was testing with. Via Import private go modules from gitlab and the...
View ArticleArticle 16
Liked Chris Siebenmann (@cks@mastodon.social) Post details Today, if you publish a popular Go module on a URL and you lose control of the URL (through, eg, domain expiration and having the domain...
View ArticleArticle 14
Liked GitHub - Antonboom/testifylint: The Golang linter that checks usage of github.com/stretchr/testify. Post details The Golang linter that checks usage of github.com/stretchr/testify. - GitHub -...
View ArticleArticle 10
Liked GitHub - cweill/gotests: Automatically generate Go test boilerplate from your source code. Post details Automatically generate Go test boilerplate from your source code. - GitHub -...
View ArticleArticle 8
Liked GitHub - charmbracelet/huh: A simple, powerful library for forms and prompts in the terminal 🤷🏻♀️ Post details A simple, powerful library for forms and prompts in the terminal 🤷🏻♀️ - GitHub -...
View ArticleArticle 7
Liked GitHub - nikolaydubina/go-recipes: 🦩 Tools for Go projects Post details 🦩 Tools for Go projects. Contribute to nikolaydubina/go-recipes development by creating an account on GitHub.
View ArticleArticle 6
Liked GitHub - omissis/go-jsonschema: A tool to generate Go data types from JSON Schema definitions. Post details A tool to generate Go data types from JSON Schema definitions. - GitHub -...
View ArticleArticle 5
Liked GitHub - appliedgocode/what: Debug-level logging for developers (only!) Post details Debug-level logging for developers (only!). Contribute to appliedgocode/what development by creating an...
View ArticleArticle 4
Liked GitHub - hashicorp/go-plugin: Golang plugin system over RPC. Post details Golang plugin system over RPC. Contribute to hashicorp/go-plugin development by creating an account on GitHub.
View ArticleArticle 3
Liked Go 1.22: Interactive release notes by Anton Zhiyanov Post details Isolated loop variables, range over integers, math/rand v2 and enhanced routing.
View ArticleHow do you represent a JSON field in Go that could be absent, `null` or have...
If you're a follower of my blog you'll know that just one of the Open Source projects I maintain is the oapi-codegen OpenAPI-to-Go code generator. Last year, we received a feature request to handle the...
View ArticleHow to unpublish/redact/undo/retract a Go release
I recently rolled out go-semantic-release on dependency-management-data (DMD) to make managing the changelog a little easier, by taking Conventional Commits and converting them to a much nicer...
View ArticleArticle 0
Liked Why Go is my favorite programming language by Michael Stapelberg Post details I strive to respect everybody’s personal preferences, so I usually steer clear of debates about which is the best...
View ArticleArticle 3
Liked How I write HTTP services after eight years by Mat Ryer - PACE. by Mat Ryer Post details Mat Ryer has been writing Go since r59—a pre `1.0` release—and has been building HTTP APIs and services...
View ArticleArticle 2
Liked How I write HTTP services in Go after 13 years | Grafana Labs Post details Mat Ryer, principal engineer at Grafana Labs and host of the Go Time podcast, shares what he's learned from more than a...
View ArticleArticle 1
Bookmarked How I write HTTP services in Go after 13 years | Grafana Labs Post details Mat Ryer, principal engineer at Grafana Labs and host of the Go Time podcast, shares what he's learned from more...
View ArticleArticle 0
Liked Xe :verified: (@cadey@pony.social) Post details I wish Go had a retry block https://xeiaso.net/blog/2024/retry-block/
View ArticleArticle 1
Liked Carlana Johnson :v_trans: (@carlana@tech.lgbt) Post details In response to @cadey@pony.social's blog post about wanting retry loops in #Golang, I wrote terrible hack using using the proposed...
View ArticleGotcha: Don't try and authenticate to URLs generated by GitHub Actions...
I recently spotted GitHub's announcement about the new v4 release for working with GitHub Actions Artifacts and impressed with the performance increase they mentioned, wanted to jump on it. However, I...
View ArticleArticle 0
Liked go run by breadchris Post details It may seem silly, but go run is my favorite part about go. Want to run your code? go run main.go. It is so stupidly simple that I could tell my mom about this...
View ArticleArticle 0
Liked Go first impressions Post details Go first came onto my radar about 9 years ago when I came across MuMax during my PhD studies. While I’ve touched it briefly, I wouldn’t consider myself to have...
View ArticleArticle 1
Liked GitHub - dmarkham/enumer: A Go tool to auto generate methods for your enums Post details A Go tool to auto generate methods for your enums. Contribute to dmarkham/enumer development by creating...
View ArticleArticle 0
Liked Static Assert in Go Post details Make the compiler check your assumptions before any code runs.
View ArticleArticle 0
Liked Writing Go CLIs With Just Enough Architecture Post details Creating a quick CLI in Go is easy, but here are some patterns you can use to make your CLI easier to extend in the future
View ArticleWhy is Go 1.22's enhanced routing not working for me?
A few weeks ago, I started looking at adding Go 1.22+'s new net/http routing to oapi-codegen so folks could use the new lightweight functionality built into the standard library. I ended up getting...
View ArticleWhat routes is my `http.ServeMux` listening for?
As I've been looking at adding Go 1.22+'s new net/http routing to oapi-codegen so folks could use the new lightweight functionality built into the standard library, I found that I wanted to make sure...
View ArticleArticle 0
Liked GitHub - maragudk/goqite: Go queue library built on SQLite and inspired by AWS SQS. Post details Go queue library built on SQLite and inspired by AWS SQS. - maragudk/goqite
View ArticleArticle 0
Liked Representing State as interfaces in Go by Evan Moses Post details I made up a neat little pattern in Go the other day. It’s a way to represent a state change in a system by exposing different...
View ArticleArticle 1
Liked Go performance from version 1.0 to 1.22 by Ben Hoyt Post details Shows how much the performance of Go has improved from version 1.0 through to 1.22 (including PGO) -- in its compiler, runtime,...
View ArticleArticle 0
Liked Making ijq Fast Post details I recently received an issue report that ijq was performing slowly. The issue claimed that, when used on a large (16 MB) JSON file, ijq was “too slow to be usable”....
View Article
More Pages to Explore .....