Skip to content

Release 2.7

Choose a tag to compare

@deankarn deankarn released this 13 Apr 00:42
· 35 commits to master since this release

What's New?

  • Starting to do releases + notes ;)
  • Reworked golang.org/x/net/context logic ( backward compatible of course ) and added some helper methods WithCancel, WithDeadline, WithTimeout and WithValue. When Go 1.7 comes out will update backend to seamlessly use http.Request's Context.
  • Added Context() and WithContext(ctx context.Context) methods on lars's Context to get and set the context, mirroring how it will work on the Go 1.7 Request object.
  • Change how request scoped variables are stored and accessed; replaces map[string]interface with golang.org/x/net/context, which is actually a little faster and will fit right into how Go 1.7 will do it ( this way I can keep lars compatible with standard http handlers )