golang-playground

Go CLI

  • go build: Compile a bunch of go source code files
  • go run: Compile and executes one or more files
  • go fmt: Formats all the code in each file in the current directory
  • go install: Compiles and "installs" a package
  • go get: Downloads the raw source code of someone else's package
  • go test: Runs any tests associated with the current project

Sources