-
go run
-
go test archive/zip
-
go build
-
go fmt
-
go get code.google.com/p/go.net/websocket
Go is a zero configuration language, no need to maintain build scripts. Follow prescribed directory structure: workspace/
bin # executable binaries
pkg # compiled object files
src # source code
-
set GOPATH to bin and add to PATH in bashrc
-
Create namespace like github.com/harpreet4u
-
go install
-
For package hello run as "gocode/bin/hello" or "hello".
use "godoc github.com/harpreet4u/hello"