[go-nuts] Re: What's the status of the new Go brand?

2018-08-26 Thread mark
I filed an issue for package doc slowness about 9 days ago: https://github.com/golang/go/issues/27057 On Saturday, August 25, 2018 at 10:26:54 PM UTC-7, Steve Roth wrote: > > Hmm, I wouldn't say "nothing" has changed. The golang.org site has > gotten noticeably slower, particularly the package

Re: [go-nuts] Re: Ioctl Syscall with go and c

2018-08-26 Thread jake6502
I was aware that your parameters would not fit the Ioctl functions. As Ian pointed out, you would need to use *golang.org/x/sys/unix/Syscall() *and friends. On Sunday, August 26, 2018 at 10:00:11 AM UTC-4, sbez...@cisco.com wrote: > > Hi Jake, > > > > Ioctl implementation in unix package

Re: [go-nuts] Re: Ioctl Syscall with go and c

2018-08-26 Thread Ian Lance Taylor
On Sun, Aug 26, 2018 at 6:59 AM, 'Serguei Bezverkhi (sbezverk)' via golang-nuts wrote: > > Ioctl implementation in unix package seems a bit limited, how do you pass > for example a required struct if “func IoctlSetInt(fd int, req uint, value > int)” allows only to accept int?? If this package had

[go-nuts] http client GET with err : dial tcp:look up xxxxx: Temporary failure in name resolution

2018-08-26 Thread Youqi yu
Hi : as the topic, did anyone met this problem before? I set http client timeout for 2 second, generally It works fine. But sometimes It blocked for more than 4 minutes ,even 14minutes. The goroutines keeps inc as many requests come in. After that block time all request return this error.

Re: [go-nuts] Re: Working with import "google.golang.org/api/admin/directory/v1"

2018-08-26 Thread John More
Silviu, Thank You. It was my birthday yesterday and I spent all day trying to follow the source code trail and you provided a great birthday present. It worked as you advised and I am sure I will have many more occasions to use this. One side effect of my day going through the library source code

Re: [go-nuts] Re: Ioctl Syscall with go and c

2018-08-26 Thread 'Serguei Bezverkhi (sbezverk)' via golang-nuts
Hi Jake, Ioctl implementation in unix package seems a bit limited, how do you pass for example a required struct if “func IoctlSetInt(fd int, req uint, value int)” allows only to accept int?? If this package had a func accepting uintptr as a parameter, then I guess that could work. Thank you

Re: [go-nuts] Find package versions in a given binary

2018-08-26 Thread Tim Waugh
On Fri, 24 Aug 2018, 18:30 Paul Jolly, wrote: > Take a look at https://github.com/rsc/goversion > > The -m flag should give you details of the modules used to build your > program. > Thanks, that's exactly what I was looking for. Tim. */ -- You received this message because you are

[go-nuts] Re: Working with import "google.golang.org/api/admin/directory/v1"

2018-08-26 Thread silviucapota
Hi John If you look at the source code, you will notice that the User struct they have makes use of a custom MarshallJSON method, which accepts ForceSendFields (as defined inside the User type) So what you might need to do, is add that "Suspended" into that slice and it will marshall it to

Re: [go-nuts] IDE/tools that support the new Go module feature in 1.11?

2018-08-26 Thread Florin Pățan
You can use an existing project but you have to enable the "Go modules support" manually. The IDE should detect it's a Go modules supporting project and ask you to enable it using a tooltip. GoLand 2018.2.2 is recommended for Go Modules support as older versions target older releases of Go