#Go by examples In order to run those examples you must define your $GOPATH variable and install go compiler. Then in order to run any example without compiling it: go run example1.go Or compiling the current example: go build example1.go