[go-nuts] Re: Error running vgo with go1.10.1 on darwin

2018-04-16 Thread jra
You might be hitting the same problem as https://github.com/golang/go/issues/24694, which was fixed on April 5. Try updating your vgo (go get -u golang.org/x/vgo) and see if you get a different result. The key thing is that vgo needs the GOROOT directory available to look at. It looks first in

[go-nuts] Re: get the data out of slice of structs

2017-10-26 Thread jra
At this point, variable got is a slice of length 0. If you tried to access got[0], you'd get a panic at runtime for out of bounds access. You could add a State to it like this: got = append(got, State{ DLastmodified: time.Now(), DState: "test" }) and then access it with got[0]. You would probab

[go-nuts] Re: [golang-dev] Subject: Go 1.9.2 and Go 1.8.5 are released

2017-10-26 Thread jra
On Thursday, October 26, 2017 at 4:58:52 AM UTC+2, Michael Hudson-Doyle wrote: > > I've updated my snaps with both these releases, so users with the snap > already installed should get them soon, or snap install --classic --channel > 1.9/stable go on an ubuntu or ubuntu-like system if you want t

[go-nuts] Re: A tour of go - Since a couple days ago the line numbers started to render on the right side or the margin line (instead of left).

2017-10-25 Thread jra
I see that as well with Chrome and Firefox. When I used the instructions to run a local copy of the tour to debug it, the problem went away. So it has something to do with how it is run/served from golang.org. -

[go-nuts] go-any: a more generic way to download Go versions

2017-10-25 Thread jra
If anyone is interested, I have made a tiny update to the tool used to download and run release candidates which makes it useful for any version number: https://github.com/jeffallen/build/commit/dfeb16f0a5edb0c0c2a8278962812ce100f63bff I find it useful, you might too. If someone from the Go

[go-nuts] Re: Why should Golang stop appending certificate file after finding one

2016-07-10 Thread jra
I can't tell you why it is how it is, but you can always load the roots that *you* want to use into your own CertPool and then use that CertPool for verification. See https://golang.org/pkg/crypto/x509/#VerifyOptions -jeff -- You received this message because you are subscribed to the Google

[go-nuts] Re: Golang serial port get CTS and DSR values

2016-07-10 Thread jra
On Friday, July 8, 2016 at 6:32:45 PM UTC+6, hcha...@isa.ae wrote: > > I just want to know, how to get CTS and DSR values in windows environment. > i have tried below way, but it did not work for me; Can u please look into > this? > To do that, you'll be using the GetCommModemStatus Win32 API: