[go-nuts] net.InterfaceAddrs() error and returned addr slice

2019-05-15 Thread Vasiliy Tolstov
Hi! I have error from net.InterfaceAddrs() like route ip+net: no such network interface i think that error happened because i have docker running that creates/deletes interfaces in my system. My question is - does returned slice from InterfaceAddrs filed always, or in case of error in always nil?

[go-nuts] Re: Go documentation - how to determine what implements an interface?

2019-05-15 Thread 'White Hexagon' via golang-nuts
bytes.Reader is what I was looking for, thanks all! Seems like if it this information can be generated, then it should probably be included in the main documentation? I don't know how anyone new to the language would ever work that out otherwise. I have vscode 1.33, which support guru (using

Re: [go-nuts] Re: Go documentation - how to determine what implements an interface?

2019-05-15 Thread Caleb Spare
To summarize, there are three main concrete types in the standard library that provide ReadSeeker functionality: *os.File *bytes.Reader *strings.Reader On Wed, May 15, 2019 at 12:33 PM Sam Mortimer wrote: > > There is guru >

[go-nuts] Re: Go documentation - how to determine what implements an interface?

2019-05-15 Thread Sam Mortimer
There is guru ( https://docs.google.com/document/d/1_Y9xCEMj5S-7rv2ooHpZNH15JgRT5iM742gJkw5LtmQ/edit) but it's intended for editors not humans. I suppose that means perhaps you could use one of the editors that uses guru ? Regards, -Sam. src/io/io.go:#5381 is where io.ReadSeeker is defined:

[go-nuts] Re: Go documentation - how to determine what implements an interface?

2019-05-15 Thread Tamás Gulácsi
2019. május 15., szerda 16:56:17 UTC+2 időpontban White Hexagon a következőt írta: > > I have another strange interface with the Go AWS SDK. The PutObject is > expecting the data as an: io.ReadSeeker > > I imagine there is something implementing this in Go. But my question is > how would a

[go-nuts] Go documentation - how to determine what implements an interface?

2019-05-15 Thread 'White Hexagon' via golang-nuts
I have another strange interface with the Go AWS SDK. The PutObject is expecting the data as an: io.ReadSeeker I imagine there is something implementing this in Go. But my question is how would a new user find this information? The go documentation for the API just tells me there is a

[go-nuts] Re: x/mobile: Feature, add "-target=io/arm,ios/386" and "-nobitcode" to bind command

2019-05-15 Thread constantine
I ran this command: brew install go --*HEAD* Now Xcode compiles without an error and ENABLE_BITCODE=YES On Tuesday, May 14, 2019 at 9:18:12 PM UTC-7, Tristian Azuara wrote: > > Hi!, > > gomobile does not produce BITCODE enabled frameworks, (AFAIK) you have to > set the XCode