sing-box requires Golang 1.18 or a higher version.
$ go install github.com/sagernet/sing-box@latest
The binary is built under $GOPATH/bin
$ sing-box version