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