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