This document gives tips for writing clear, idiomatic Go code.
It augments the language specification, the Tour of Go, and How to Write Go Code,
How to Write Go Code - The Go Programming Language
Go code must (should?) be kept inside a workspace. A workspace is a directory hierarchy with three directories at its root:
Go code must (should?) be kept inside a workspace. A workspace is a directory hierarchy with three directories at its root:
- src contains Go source files organized into packages (one package per directory),
- pkg contains package objects, and
- bin contains executable commands.
Then can use "go run programName.go" and "go install programName.go"