Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
paulspringett
· 11y ago · 0 comments
Really interesting to read through the source code and get an idea of how you're using Go to write APIs, thanks for sharing!
Comments
[–]
knadh
11y ago
Deciding on a pattern on writing http APIs in Go was a bit of chore. Ended up using the `pat` library for chaining middleware. Quite extensible and light weight. Also, using context to pass objects through the requests chain is a neat trick.