We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please answer these questions before submitting your issue. Thanks!
go version
$ go version go version go1.6.1 linux/amd64
go env
$ go env GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/sjung/go" GORACE="" GOROOT="/usr/local/go" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GO15VENDOREXPERIMENT="1" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0" CXX="g++" CGO_ENABLED="1"
$ cat soreuseport.go package main import ( "fmt" "golang.org/x/sys/unix" ) func main() { fmt.Println(unix.SO_REUSEPORT) } $ go run soreuseport.go
A number, on this architecture it would be 15 (0xf). For example, on darwin/amd64:
$ go run soreuseport.go 512
$ go run soreuseport.go # command-line-arguments ./soreuseport.go:10: undefined: unix.SO_REUSEPORT
See also: https://github.com/golang/sys/search?q=SO_REUSEPORT+path%3Aunix
The text was updated successfully, but these errors were encountered:
Should be fixed by golang/sys@ea9bcade75cb9
Sorry, something went wrong.
Works for me. I think you just need to update your golang.org/x/sys repo.
No branches or pull requests
Please answer these questions before submitting your issue. Thanks!
go version
)?go env
)?If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
A number, on this architecture it would be 15 (0xf). For example, on darwin/amd64:
See also: https://github.com/golang/sys/search?q=SO_REUSEPORT+path%3Aunix
The text was updated successfully, but these errors were encountered: