/gopl

https://github.com/adonovan/gopl.io/

Primary LanguageGo

Set env

export GOBIN=$HOME/gopl/bin

export GOPATH=$HOME/gopl

export PATH=$PATH:/$HOME/gopl/bin

downloading gopl.io

go get gopl.io

build pkg

go build gopl.io/ch1/helloworld

go run gopl.io/ch1/helloworld

go install gopl.io/ch1/helloworld

$GOPATH/bin/helloworld

init workspack

go work init src/ch1

go work use src/ch2

go run module_name