#HTTP
3 posts tagged HTTP. All posts
Rate limiting in Go with golang.org/x/time/rateToken-bucket rate limiting in Go: rate.NewLimiter, when to use Allow, Wait or Reserve, per-client limiters with cleanup, and HTTP middleware that returns 429.
Shipping a single Go binary with embedBundle static files and templates into a Go binary with //go:embed and embed.FS, serve them with http.FileServerFS, and keep a dev mode that reads from disk.
Routing in Go's net/http with method and wildcard patternsHow Go's ServeMux patterns work: methods, {id} and {path...} wildcards, {$}, precedence and conflicts, automatic 405s, and middleware as plain functions.
© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)