[go-nuts] Re: how to work around "go vet: possible misuse of unsafe.Pointer"?

2021-05-20 Thread Kn
So sorry I didn't get how to format the code in the edit window. On Thursday, May 20, 2021 at 3:37:35 PM UTC+8 Kn wrote: > Hi, guys, I need to acess shared memory, so I write some code like this: > > ```go > func shmget(key int, size int, mode int) (int, error) { > shmId, _, ret := syscall.Syscal

[go-nuts] Re: how to work around "go vet: possible misuse of unsafe.Pointer"?

2021-05-20 Thread Kn
I found this issue: https://github.com/golang/go/issues/41205. I found the answer, this conversation could be closed. On Thursday, May 20, 2021 at 3:39:28 PM UTC+8 Kn wrote: > So sorry I didn't get how to format the code in the edit window. > > On Thursday, May 20, 2021 at 3:37:35 PM UTC+8 Kn wr