Our great sponsors
-
Go Code Review Comments - tips and tricks adopted by major Go package authors.
-
That said, the standard library in Go is indeed fantastic. For web APIs start with net/http then have a look at a good HTTP router like go-chi or gorilla/mux amongst the more popular ones.
-
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.
-
go-chi - HTTP routing (alternative for a more full-stack approach gin-gonic/gin).
-
That said, the standard library in Go is indeed fantastic. For web APIs start with net/http then have a look at a good HTTP router like go-chi or gorilla/mux amongst the more popular ones.
-
rs/zerolog - Logging (alternative uber-go/zap).
-
rs/zerolog - Logging (alternative uber-go/zap).
-
spf13/cobra - CLI setups like starting the API service and accepting CLI flags, etc.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
[jackc/pgx](github.com/jackc/pgx) and jackc/pgtype for PostgreSQL interactions. Postgres is "defacto" database engine adopted by the Go community, of course, you can use other DBs as well as it has good support in Go.
-
tidwall/gjson - JSON processing.
-
pkg/errors or stdlib errors - Error handling, but I wrote my own package for that tailored to my projects' needs. (FYI primalskill/errors but please don't use it as it's not production-ready yet and it will change a lot)
-
Uber Go Style Guide - one of the more popular style guides created for Go by Uber.
-
A8M Go Cheat Sheet - a really really good cheat sheet for seasoned programmers learning Go.
Related posts
- Authentication system using Golang and Sveltekit - Initialization and setup
- Beginner-friendly API made with Go following hexagonal architecture.
- Cerbos + FastAPI + AWS Cognito: Do not reinvent user permissions
- Best approach for a monolithic web app?
- 3 Ways I Keep My Rest APIs endpoints down to 4-6 lines and eliminate boilerplate. What are yours?