Title: Theory / Unimportant / CS / Programming / Golang / Code
Tags: computer_to_instruction fromCommandLine FromVariables hasNotNewEffectReturnsMeaning hasSeenConjDef

Name: Workspaces
Definition: src contains Go source files, and
Page: https://golang.org/doc/code.html
Definition2: bin contains executable commands.
Conjdef: a directory hierarchy with two directories at its root

Variable: src
Meaning: multiple version control repositories
Page: https://golang.org/doc/code.html
Context: golang
Language: go

Variable: GOPATH
Meaning: the location of the GO workspace
Page: https://golang.org/doc/code.html
Context: golang
Language: go
Typ: environment variable
Initialization: $HOME/go on Unix, $home/go on Plan 9, and %USERPROFILE%\go on Windows.

Instruction: go install foo
Page: https://golang.org/doc/code.html
Effect: go install
from directory $GOPATH/foo
Language: go
Context: golang

Instruction: go install
Page: https://golang.org/doc/code.html
Effect: Install the program in current directory as a program which can be run on your system
Language: go
Context: golang

Instruction: go build
Page: https://golang.org/doc/code.html
Effect: Consider the program in current directory as a library which can be called by other Go programs
Language: go
Context: golang

Instruction: go build foo
Page: https://golang.org/doc/code.html
Effect: go build from directory $GOPATH/foo
Language: go
Context: golang

Instruction: go test
Page: https://golang.org/doc/code.html
Effect: run each file of the form *_test.go and in it each function Test* with signature func (t *testing.T)
Report an error if a failure function is called
Language: go
Context: golang

Variable: TestXXXX
Meaning: A function used to test the code
Page: https://golang.org/doc/code.html
Context: golang
Language: go
Typ: funct

Instruction: go get foo
Page: https://golang.org/doc/code.html
Effect: get the go code from source foo
Language: go
Context: golang