Comple a program:
$ go build helloworld.go
$ ./helloworld
Hello, BF
Build and install program:
$ go install github.com/user/hello
or
$ cd $GOPATH/src/github.com/user/hello
$ go install
Run the program:
$ $GOPATH/bin/hello
or
$ hello
go run
command compiles the source code from one or more source files whose names end in .go, lin ks it with librar ies, then runs the resulting executable file.
$ go run helloworld.go
- Blog: https://blog.golang.org/
- Playground: https://play.golang.org/
- Go Tour: https://tour.golang.org/
- Code Editors:
- Installation: https://golang.org/doc/install
- Worskpaces: https://golang.org/doc/code.html#Workspaces
- Go Source Code: https://golang.org/pkg/
- Book source Code: https://github.com/adonovan/gopl.io/