Probably the most exciting thing for me is that database/sql now accepts a context.Context, which means it’s really easy to cancel database queries (and actually terminate the underlying query!), and you can thread it through your entire inbound request from the *http.Request object.
I have about ten commits in this release! Most of them are examples or documentation, but one speeds up JSON encoding by 10-20%. Also I fixed godoc so it doesn’t highlight line numbers anymore so if you have it checked out do a git pull on golang.org/x/tools and reinstall.
Probably the most exciting thing for me is that
database/sqlnow accepts a context.Context, which means it’s really easy to cancel database queries (and actually terminate the underlying query!), and you can thread it through your entire inbound request from the*http.Requestobject.I have about ten commits in this release! Most of them are examples or documentation, but one speeds up JSON encoding by 10-20%. Also I fixed godoc so it doesn’t highlight line numbers anymore so if you have it checked out do a git pull on golang.org/x/tools and reinstall.
Congrats, and thanks for fixing up godoc :)
Graceful shutdown of HTTP is a great addition, also. :-)
I’m pretty excited about this. I’m sure the go peanut gallery is rolling their eyes at sort.Slice(). However here’s what’s awesome: