4 ms·
The Go standard library has most of what you need for basic API servers. However as has been stated here, some things are not worth spending time crafting yours
by programd 9y ago
The Go standard library has most of what you need for basic API servers. However as has been stated here, some things are not worth spending time crafting yourself.
Also for modern Docker/Kubernetes ops environments you need some additional infrastructure for table stakes. Here's my standard Nulladmin.com stack:
Routing - https://github.com/go-chi/chi https://github.com/go-chi/chi
Command flags - https://github.com/spf13/pflag https://github.com/spf13/pflag
Config - https://github.com/spf13/viper https://github.com/spf13/viper
Logging - https://github.com/Sirupsen/logrus https://github.com/Sirupsen/logrus
Metrics - https://github.com/prometheus/client_golang/prometheus https://github.com/prometheus/client_golang/prometheus
SQL helper - https://github.com/jmoiron/sqlx https://github.com/jmoiron/sqlx
OpenTracing - https://github.com/opentracing/opentracing-go https://github.com/opentracing/opentracing-go