Our great sponsors
-
Gin
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
The biggest shortcomings of the default net/http implementation are, in my opinion, the inability to route based on HTTP method and the lack of path-based parameters. That being said, a full framework is often overkill as well. I'd probably recommend something like Gin or Chi, or even just httprouter if you want to be really minimal.
I looked into this codegen which generates chi server using Open API spec but I found it a bit more than I could chew right now. If all goes well then I'll be looking into integrating various libraries for the requirements I have mentioned. JWT decoding is a must which I am looking at.