[go-nuts] cryptic multiple roots error (in relation to plugins, -buildmode=shared, -linkshared)

2017-04-02 Thread Basile Starynkevitch
Hello All, This *package, files at build (in relation to plugins, -linkshared, -buildmode=shared, )* thread , and that *plugins (Go 1.8) and packages* one

[go-nuts] debugging with delve

2017-04-02 Thread Robert Solomon
I am a newbie to Go. I'm trying to figure out how to use delve, but I think the documentation assumes I know more than I do. I did the go get command, and there were no errors. But when I try to invoke it using either $ dlv $ delve I get a "no command found. did you mean ..." error. I think I

Re: [go-nuts] debugging with delve

2017-04-02 Thread Matt Harden
Add $GOHOME/bin to your $PATH. On Sun, Apr 2, 2017 at 8:56 AM Robert Solomon wrote: > I am a newbie to Go. I'm trying to figure out how to use delve, but I > think the documentation assumes I know more than I do. > > I did the go get command, and there were no errors. But when I try to > invok

Re: [go-nuts] dep: Roadmap for merging into the toolchain

2017-04-02 Thread Peter Bourgon
The dep project is in an alpha state; we'll leave alpha and enter a versioned releases phase as soon as the manifest/lock file format changes are in. On Fri, Mar 31, 2017 at 2:32 AM, Kiyoshi Murata wrote: > I think Russ' feedback may imply dep needing to be versioned, as in the > project itself p

[go-nuts] Re: Best practice for Method Receivers

2017-04-02 Thread st ov
Could you explain how this is a race condition? Running it in the playground appears to succeed, https://play.golang.org/p/zs6T361fc6 On Saturday, March 25, 2017 at 7:51:52 PM UTC-7, Dragos Harabor wrote: > > You may also run into subtle races when you mix pointer and value > receivers, as se

[go-nuts] Re: Best practice for Method Receivers

2017-04-02 Thread Dragos Harabor
You need to run it on your own machine with the -race flag, e.g.: go run -race file.go More info on the race detector: https://golang.org/doc/articles/race_detector.html On Sunday, April 2, 2017 at 2:57:59 PM UTC-7, st ov wrote: > > Could you explain how this is a race condition? > Running it in

[go-nuts] Re: How to abort the http ResponseWriter

2017-04-02 Thread Song Liu
Is there any other official way to cancel a ResponseWriter ? Many thanks. On Saturday, April 1, 2017 at 8:12:55 PM UTC+8, Song Liu wrote: > > > I am implementing a file server, so http.ServerFile used to write back the > file content to remote client: > > > func downloadFile(w http.ResponseWrite