Learning GoLang.
Some examples from https://tour.golang.org/
cd src/samePackage
go run main.go state.go
go build && ./samePackage
This is my first go package.
cd src/hello
export GOPATH=$GOPATH:$(pwd)
go run main.go
go build && ./hello
Learning GoLang.
Some examples from https://tour.golang.org/
cd src/samePackage
go run main.go state.go
go build && ./samePackage
This is my first go package.
cd src/hello
export GOPATH=$GOPATH:$(pwd)
go run main.go
go build && ./hello