It's been 4 years I use Ruby for server side, now I want to learn Golang, and this is my notes, based on Build web application with Golang book
so change directory and create project directory there
cd $GOPATH
mkdir project
go build
is for compiling tests.
go clean
is for cleaning files that are generated by compilers
format the code
go get
is a command to get remote packages, from github, etc
go install
this command compiles all package and generates files, then moves them to $GOPATH/pkg
or $GOPATH/bin
go test
is a command to loads all files whose name include *_test.go
, then test it
run go help testflag
for more details
go env
view environment variablesgo list
list all install packagesgo run
compile temporary files and run the application