Skip to content

Instantly share code, notes, and snippets.

@chantra
Created August 2, 2018 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chantra/7783d1fe5e6e859c066aa7dcdcac5e87 to your computer and use it in GitHub Desktop.
Save chantra/7783d1fe5e6e859c066aa7dcdcac5e87 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"syscall"
"runtime"
)
func main() {
fmt.Printf("Version: %s\nGOOS: %s\nGOARCH: %s\n", runtime.Version(), runtime.GOOS, runtime.GOARCH)
fmt.Printf("SO_REUSEADDR: 0x%X\nSO_REUSEPORT: 0x%X\n", syscall.SO_REUSEADDR, syscall.SO_REUSEPORT)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment