Hi,
This is my go env:
nsaboo@ubuntu:~$ go version
go version go1.12.4 linux/amd64
nsaboo@ubuntu:~$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/nsaboo/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/nsaboo/Documents/goworkspace"
GOPROXY=""
GOR
I was curious about that too. Looking at the documentation, the
runtime.KeepAlive documentation could be improved:
A very simplified example showing where KeepAlive is required:
type File struct { d int }
d, err := syscall.Open("/file/path", syscall.O_RDONLY, 0)
// ... do something if err != nil