[go-nuts] Re: Can anyone show an example of using Context in net.http middleware?

2016-09-05 Thread kevin . norman . gough
Oh thank you! On Friday, September 2, 2016 at 4:40:51 PM UTC-5, fabrizi...@gmail.com wrote: > > Here is an example: > https://play.golang.org/p/3mFS_7-mM8 > > You have two wrapper handlers (logIt and authIt). authIt, authenticates > every handler you want to authenticate. For simplicity it take

[go-nuts] Can anyone show an example of using Context in net.http middleware?

2016-09-02 Thread kevin . norman . gough
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 emai