
Web
TLS for a Go Server With Autocert and Lets Encrypt
Serve HTTPS from a Go program with autocert and Lets Encrypt, limit which hostnames may get certificates, persist the cache and handle port 80.
7 min read
Everything you need to level up your coding skills.

Serve HTTPS from a Go program with autocert and Lets Encrypt, limit which hostnames may get certificates, persist the cache and handle port 80.

Write liveness, readiness and startup endpoints for a Go service: what each should check, how to bound dependency checks, and how readiness fits shutdown.

Load Go web app configuration from defaults, a file, environment variables and flags in a fixed order, read secrets from files and report every error at once.

Publish counters and gauges from a Go service with the standard library expvar package, mount its handler safely and see when Prometheus is the better choice.
We send one email when a new article is published. No spam.