diff --git a/pages/common/go-build.md b/pages/common/go-build.md new file mode 100644 index 0000000000..a8460fe92f --- /dev/null +++ b/pages/common/go-build.md @@ -0,0 +1,12 @@ +# 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}}`