I covered this in detail in LGWT here https://quii.gitbook.io/learn-go-with-tests/questions-and-answers/http-handlers-revisited…
When I started writing Go many years ago, I applied this same pattern from day 1, not because of some genius, but because these patterns are already proven and work.
Go is not *that* special or different
@jchyip Oops, some periods got added for some reason
https://quii.gitbook.io/learn-go-with-tests/questions-and-answers/http-handlers-revisited
@quii The link is broken?