gologin v2.0.0 Release Notes

Release Date: 2017-01-11 // almost 6 years ago
    • ๐Ÿ‘Œ Support for Go 1.7+ standard context
    • ๐Ÿ”„ Change gologin handlers to be standard http.Handler's
    • โฌ‡๏ธ Drop requirement for ctxh.NewHandler wrapper
    • โฌ‡๏ธ Drop dependency on github.com/dghubble/ctxh shim

    Migration

    • โšก๏ธ Update golang.org/x/net/context imports to context
    • ๐Ÿ”„ Change any ctxh.ContextHandler to a http.Handler. The ctx is passed via the request so the argument is no longer needed.
    • โœ‚ Remove any ctxh.NewHandler(...) wrap. gologin handlers are now standard http.Handler's, conversion is no longer required.
    • ๐Ÿ‘‰ Use req.Context() to obtain the request context within handlers.
    • โšก๏ธ See updated examples