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
Everyone is welcome as long as you follow our code of conduct! Thank you. Mastodon.cloud is maintained by Sujitech, LLC.