# go build > Tool for compiling packages and dependencies. > More information: . - Compile a source file into a named executable: `go build -o {{executable}} {{path/to/main/file}}.go` - Compile a main package into a named executable: `go build -o {{executable}} {{path/to/main/package}}`