Re: [go-nuts] adding context.Context to new code

2024-03-01 Thread 'Yash Bansal' via golang-nuts
@nazri Were you able to achieve this? Adding context to every function. Is there any repository/library available for the same. I have been one of the unaware ones who started writing a new service without adding context explicitly. On Friday, May 19, 2017 at 9:34:22 AM UTC+5:30 Nazri Ramliy

Re: [go-nuts] adding context.Context to new code

2017-05-18 Thread Nazri Ramliy
On Wed, May 17, 2017 at 3:55 PM, Nazri Ramliy wrote: > I'm about to embark on doing the same, and my first pit stop is at > using the callgraph to generate the caller-callee data but stumbled > upon this error while trying out the example given by the "callgraph" > command when run without argumen

Re: [go-nuts] adding context.Context to new code

2017-05-17 Thread Nazri Ramliy
I'm about to embark on doing the same, and my first pit stop is at using the callgraph to generate the caller-callee data but stumbled upon this error while trying out the example given by the "callgraph" command when run without arguments: $ callgraph -format '{{.Caller.Pkg.Object.Path}} -> {{.Ca

[go-nuts] adding context.Context to new code

2017-05-07 Thread meirfischer
I'm adding tracing to an existing code base with many packages and it seems the best way to have context's passed around is to just have every method take a context.Context. Is there any tooling for converting a code base/package to have: (a) context.Context as the first parameter in each funct