tjpcc
46ad450327
continuous-integration/drone/push Build is passing
Details
HandlerFunc is much better as a function returning a Handler, rather than a newtype for the function type itself. This way there is no confusion creating a type-inferenced variable with HandlerFunc(func(... and then using a HandlerFunc where a Handler is expected. Much better to only have one public type. |
||
---|---|---|
.. | ||
logger.go | ||
middleware.go | ||
middleware_test.go |