ES Module imports in Node.js and the browser

For a recent project, I wanted to have some JS code (in multiple files) available for testing from the command-line with Node.js, but also to be able to load the same code into a web page to be invoked directly from a browser. I've encountered this same issue before …

Wishing the 'if err != nil's away..

#​481 — October 24, 2023 Unsub  |  Web Version Go Weekly ! 'Bang'-ing Errors in Go? — Criticisms of the verbosity of error handling in Go are common, but proposed solutions? Much less so. Ted suggests a syntax initially using excl...

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...