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. |
||
---|---|---|
.. | ||
testdata | ||
dir.go | ||
dir_test.go | ||
file.go | ||
file_test.go | ||
gemini.go | ||
gopher.go | ||
stat.go |