Re: [go-nuts] Re: Learning Data Structures and algorithms with Golang

2019-04-12 Thread Ian Lance Taylor
On Fri, Apr 12, 2019 at 3:55 PM wrote: > > Bhagvan's disgrceful misuse of this forum to support his commercial endeavors > should result in the exclusion of all his future posts Thanks for the note. I encourage you to be respectful, as discussed at the Gopher Code of Conduct that governs this

[go-nuts] Re: Learning Data Structures and algorithms with Golang

2019-04-12 Thread lgodio2
Bhagvan's disgrceful misuse of this forum to support his commercial endeavors should result in the exclusion of all his future posts On Friday, April 5, 2019 at 10:28:52 AM UTC-4, Bhagvan Kommadi wrote: > > Check out my published book on Amazon from packt: > > Learning Data Structures and al

Re: [go-nuts] how to use an instance across functions in a package w/o global vars

2019-04-12 Thread Michael Jones
This is really about you, your taste in design, and your sensibilities for information hiding. If you have a global symbol, be it a function name or data item, then that's what it is, a global. Globals, r/w data especially, invite subtle sharing complications, can cause complexity in attempts at m

Re: [go-nuts] how to use an instance across functions in a package w/o global vars

2019-04-12 Thread alex via golang-nuts
On Thursday, April 11, 2019 at 6:20:33 AM UTC-4, Dumitru Ungureanu wrote: > > It helps a lot! Thanks. > > I now have two things to moan about. > > If I was to pass c around, I would added it to the params list. If I had > more others, I'd built a struct. But now, if somehow I lose track of who's

[go-nuts] Re: Proposal: Shared libraries in Go, take 2 (+linux/amd64 implementation)

2019-04-12 Thread mail
Perhaps you're running into https://github.com/golang/go/issues/13492. - elias On Friday, April 12, 2019 at 5:06:08 AM UTC+2, Chao Chen wrote: > > I don't understand initial exec TLS model. But I meet the following > problem when use go shared library. *When I load Go shared library from > pyt

[go-nuts] Re: Disable test result caching from within Go code?

2019-04-12 Thread Manlio Perillo
On Friday, March 29, 2019 at 2:20:53 AM UTC+1, twp...@gmail.com wrote: > > I have a bunch of integration tests which depend on external services. > I've added the build tag "integration" for each source file containing such > tests so they are only run when I do: > $ go test -tags=integration .

Re: [go-nuts] Re: Disable test result caching from within Go code?

2019-04-12 Thread Tom Payne
Here's an example of a test that is cached but shouldn't be: https://github.com/twpayne/go-geom/blob/master/examples/postgis/main_test.go#L18 This particular test uses github.com/ory/dockertest to run an integration test against a PostgreSQL database. It uses Docker which is an external service,