gologin v2.0.0 Release Notes
Release Date: 2017-01-11 // over 7 years ago-
- ๐ Support for Go 1.7+ standard
context
- ๐ Change
gologin
handlers to be standardhttp.Handler
's - โฌ๏ธ Drop requirement for
ctxh.NewHandler
wrapper - โฌ๏ธ Drop dependency on
github.com/dghubble/ctxh
shim
Migration
- โก๏ธ Update
golang.org/x/net/context
imports tocontext
- ๐ Change any
ctxh.ContextHandler
to ahttp.Handler
. Thectx
is passed via the request so the argument is no longer needed. - โ Remove any
ctxh.NewHandler(...)
wrap.gologin
handlers are now standardhttp.Handler
's, conversion is no longer required. - ๐ Use
req.Context()
to obtain the request context within handlers. - โก๏ธ See updated examples
- ๐ Support for Go 1.7+ standard