Re: [go-nuts] newbie go question

2017-04-16 Thread ramachandrang
Thank you, Ian. I will give this a shot. I currently solved this by modifying the imported package to accept a *context.Context instead of golang.org/x/net/context.Context. On Friday, April 14, 2017 at 4:09:27 PM UTC-7, Ian Lance Taylor wrote: > > On Fri, Apr 14, 2017 at 3:34 PM, Ramachandran Gu

Re: [go-nuts] newbie go question

2017-04-14 Thread Ian Lance Taylor
On Fri, Apr 14, 2017 at 3:34 PM, Ramachandran Gurumoorthy wrote: > > I am working on a piece of code that imports "context". All the APIs include > (foobar context.Context) variable. > > Another imported package expects "golang.org/x/net/context".Context as an > argument to one of its API. When I

[go-nuts] newbie go question

2017-04-14 Thread Ramachandran Gurumoorthy
Hello, I am working on a piece of code that imports "context". All the APIs include (foobar context.Context) variable. Another imported package expects "golang.org/x/net/context".Context as an argument to one of its API. When I try to supply foobar to the api expecting ("golang.org/x/net/cont