[go-nuts] Re: Need help with go modules

2020-05-23 Thread Henry
Here is a brief tutorial for those new to Go Module. This is by no means a comprehensive guide to Go Module, but I hope this should be enough to get you started. What is Go Module, and why you should be using one? Go Module is a dependency management tool. The primary benefit of Go Module is th

[go-nuts] Re: Tracking down RSS growth in cgo library

2020-05-23 Thread Justin Israel
On Sat, May 23, 2020 at 5:19 PM Justin Israel wrote: > I've been working to track this down for 2 days now and I'm just taking a > long shot to see if anyone might have a new idea for me. > My cgo-based bindings library seems to have unbounded RSS memory growth, > which I have been able to reduce

Re: [go-nuts] Is there a way to create a global variable inside go routine stack? so that i can access any time, without passing around between methods/functions. Crazy thought !!!..

2020-05-23 Thread Robert Engels
Ignore, didn’t see the stack statement. > On May 23, 2020, at 4:46 PM, robert engels wrote: > > Use a package exported (public) variable. > >> On May 23, 2020, at 2:34 PM, adithyasasha...@gmail.com wrote: >> >> Is there a way to create a global variable inside go routine stack? so that >> i

Re: [go-nuts] Is there a way to create a global variable inside go routine stack? so that i can access any time, without passing around between methods/functions. Crazy thought !!!..

2020-05-23 Thread Sam Whited
You are describing a thread-local variable (or a goroutine local variable, I suppose). The Go authors didn't feel this was an appropriate feature for Go and it is not supported. You may find some third party libraries that do this by parsing stack traces and using them to index into maps or simila

Re: [go-nuts] Is there a way to create a global variable inside go routine stack? so that i can access any time, without passing around between methods/functions. Crazy thought !!!..

2020-05-23 Thread robert engels
Use a package exported (public) variable. > On May 23, 2020, at 2:34 PM, adithyasasha...@gmail.com wrote: > > Is there a way to create a global variable inside go routine stack? so that i > can access any time, without passing around between methods/functions. Crazy > thought !!!.. > > -- > Y

[go-nuts] Re: pprof with TLS client authentication

2020-05-23 Thread maciej . galkowski
I would just write a standalone http server with mTLS set up and serve the profiling functions from there. You are not forced to use the server mux provided by the package. On Friday, 22 May 2020 23:06:41 UTC+1, Daniel Mai wrote: > > Does go tool pprof support TLS with client authentication? I

[go-nuts] Is there a way to create a global variable inside go routine stack? so that i can access any time, without passing around between methods/functions. Crazy thought !!!..

2020-05-23 Thread adithyasashasai
Is there a way to create a global variable inside go routine stack? so that i can access any time, without passing around between methods/functions. Crazy thought !!!.. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this gr

[go-nuts] Feedback about the go-mock script that create mocks for all automatically and recursively detected Go interfaces

2020-05-23 Thread Tymoteusz Blazejczyk
Hi Everyone! Recently I have working on a project that allow to work on Go projects out-of-box using a Docker image. It contains preinstalled tools for developing, mocking, formatting, linting, building, testing and documenting Go projects. For mocking Go interfaces, I'm using the standard and

[go-nuts] Re: Need help with go modules

2020-05-23 Thread Amnon Baron Cohen
I would work through https://golang.org/doc/code.html - Amnon On Friday, 22 May 2020 12:59:03 UTC+1, lj0...@gmail.com wrote: > > It looks like I am not only one to struggle with (new?) go modules. > I still consider me as novice to GO but the major problem is as usual, the > focus. > > 1. Mod