How 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%. This is a pretty good saving, and has resulted in the following changes: B...

Understanding dynamic menubar menus in GNU Emacs

Changing the menu bar order of Emacs easy-menu menus

(Minibuffer) completion categories in GNU Emacs and forcing them

Continuous refresh, or: how to keep your API client authorized

An access token should be initialized and refreshed from a central place, yet be available to umpteenth of client sessions. Dynamic futures to the rescue.

Go 1.22's improved HTTP routing capabilities

#​480 — October 17, 2023 Unsub  |  Web Version Go Weekly Better HTTP Server Routing in Go 1.22 — Back in May, we linked to a discussion about enhancing http.ServeMux’s routing capabilities. In July, it became a proposal, and now...

Better HTTP server routing in Go 1.22

An exciting proposal is expected to land in Go 1.22 - enhancing the pattern-matching capabilities of the default HTTP serving multiplexer in the net/http package. The existing multiplexer (http.ServeMux) offers rudimentary path matching, but not much beyond that. This led to a co...

Fueling Growth: Unleashing the Potential of Go Consulting for Companies

Golang-Powered Transformation: Ardan Labs’ Fintech API Consulting Success Story In today’s fast-paced and highly competitive financial services industry, streamlined API development can be a game-changer for companies aiming to stay ahead of the curve. With the rise o...

Which 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 into the binary with a debugger: ### NOTE that can be unsafe, as it requires a...

Cubic spline interpolation

This post explains how cubic spline interpolation works, and presents a full implementation in JavaScript, hooked up to a SVG-based visualization. As a side effect, it also covers Gaussian elimination and presents a JavaScript implementation of that as well. I love topics that mi...