Tag go
I'm on Fallthrough: Patching Problems with Persnickety Proxies Purveyed by Paternalistic Princes (2 mins read).

Announcing my appearance as a guest host on Fallthrough, discussing the Go module proxy, pondering 'is Go dead?' and whether the Go team at Google have our best interests at heart.
Go 1.24's omitzero
is another one of the best additions to the ecosystem in years (4 mins read).

Why I'm very excited about the JSON tag, omitzero
, landing in Go 1.24.
Go 1.24's go tool
is one of the best additions to the ecosystem in years (8 mins read).

Why I'm very excited about go tool
landing in Go 1.24.
Accessing private Go modules in a Docker container (3 mins read).

How to use a Personal Access Token or SSH to access a private Go module, from a Docker container.
Post details
Gotcha: PersistentPostRunE
only runs on successful commands in Cobra (3 mins read).

A possible gotcha when using Cobra to perform cleanup in a PersistentPostRunE
.
Lessons learned adding OpenTelemetry to a (Cobra) command-line Go tool (10 mins read).

Some reflections on what I've found good and not so good about instrumenting a command-line tool with OpenTelemetry.
Post details
Some Go web dev notes
Using a separate Go module for your tools.go
(2 mins read).

How to use the tools.go
pattern to source-track your Go tool dependencies, but without polluting your top-level go.mod
.
Post details
In this blog post, I'll explain why your logger belongs in the context, share my favourite package and provide some code snippets to get you started.

GopherCon UK 2024 (22 mins read).

A writeup of the GopherCon UK 2024 conference.
Post details
Always choose the right tool for the job? Nah. I know Go quite well, and I use it wherever I can. Want to find out why?

Post details
As of Go 1.21, Go fetches toolchains automatically, and it’s easy to not be running the version that you thought you were running.
I'm on Go Time! (3 mins read).

Announcing my first podcast appearance on Go Time, talking about OpenAPI, oapi-codegen
, versioning, and some fun Unpopular Opinions.
Post details
Post details
Better structured concurrency for go. Contribute to sourcegraph/conc development by creating an account on GitHub.
Post details
Post details

Post details
Go library for accessing the GitHub v3 API. Contribute to google/go-github development by creating an account on GitHub.
Post details
A GoLang HTTP RoundTripper that handles GitHub API secondary rate limits - gofri/go-github-ratelimit
Post details
HTTP Round Tripper for GitHub Apps - Authenticate as an Installation Workflow - bradleyfalzon/ghinstallation
Post details
Test query is a command line tool to query test results with a SQL interface - danicat/testquery
Post details
Go driven rpc code generation tool for right now. Contribute to pacedotdev/oto development by creating an account on GitHub.
Post details

Modifying the response body of an httputil.ReverseProxy
response (2 mins read).

How to modify the response from a httputil.ReverseProxy
before it goes back to the caller.
Post details
A tool for analyzing the dependencies in compiled Go binaries, providing insight into their impact on the final build. - Zxilly/go-size-analyzer
Post details
Quick thoughts on whether sqlc is still the direction for Go projects now that we’ve been using it for three years.
Using Go's database/sql
to query an arbitrary columns of unknown type(s) (3 mins read).

How you can query an unknown number of columns, of unknown types, with Go's SQL package.
Post details
New release of #oapi-codegen is out 🚀
Big changes are:
- Support for Go 1.22+
net/http
enhanced routing - Significant documentation rewrite and adding a JSON schema for configuration file autocomplete/validation
And a whole host of other changes, check out the full release notes at https://github.com/deepmap/oapi-codegen/releases/tag/v2.2.0
Post details
GoLang architecture linter (checker) tool. Will check all project import path and compare with arch rules defined in yml file. Useful for hexagonal / onion / ddd / mvc and other architectural patte...
Calculating the GitHub API's sha
representation of a local file (2 mins read).

How to locally calculate the same sha
of a given file, so you can compare it against the GitHub API's representation.
Post details
Post details
Making it easier to schedule cross-timezones, with the tz
CLI (3 mins read).

Writing a command-line tool with Charm's Go libraries to compare the suitability of meetings across timezones.
I'm on Cup o' Go! (2 mins read).

Announcing my appearance on Cup o' Go, talking about oapi-codegen
, OpenAPI, working on Open Source and blogging.
Post details
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”. I downloaded the test file which …(https://gpanders.com/blog/making-ijq-fast/)
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, and libraries.
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 APIs for different states, while only holding state in a single underlying struct. I’m sure I’m not the first person to invent this, and it may already a name, so please let me know if you know of one. I’m going to show an instance of the pattern first and the motivation after.
Post details
Go queue library built on SQLite and inspired by AWS SQS. - maragudk/goqite
What routes is my http.ServeMux
listening for? (2 mins read).

How to fairly quickly list the routes that your http.ServeMux
is handling, pre- and post-Go 1.22.
Why is Go 1.22's enhanced routing not working for me? (2 mins read).

Why you may be receiving 404 page not found
errors when using Go's new enhanced routing in Go 1.22.
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

Post details
Make the compiler check your assumptions before any code runs.

You're currently viewing page 1 of 6, of 297 posts.