How do you build for production?

How do you build for production? just “go build server.go”?