This is a real world example from our middleware. https://github.com/cybozu-go/cmd/blob/master/http.go#L122-L132
It uses the context in the request to propagate a unique ID. Please see also my announcement of the package here :-) https://groups.google.com/forum/#!topic/golang-nuts/I0wVToodcdo 2016年9月3日土曜日 4時39分16秒 UTC+9 kevin.nor...@gmail.com: > > If I understand correctly using Context will allow "middleware" to pass > data into the handler? Can someone provide a simple example please. > > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.