Bugs in README
tv42 opened this issue · comments
Tv commented
The examples in README look wrong.
func myHandler(u *url.URL, h http.Header, *MyRequest) (int, http.Header, *MyResponse, error) {
..
mux.Handle("GET", "/stuff", tigertonic.Marshaled(tigertonic.Timed(myHandler, "myHandler", nil)))
surely that should be Timed(Marshaled(myHandler, "myHandler", nil))
as myHandler is not a http.Handler.
Richard Crowley commented
It actually should be tigertonic.Timed(tigertonic.Marshaled(myHandler), "myHandler", nil)
. Good catch!