This journey start with follow https://go.dev/doc/tutorial/.
mkdir hello
To enable the tracking by create the go.mod
file, run the go mod
init
command as below with example/hello
as name of this example
code.
go mod init example/hello
The first hello world code is in hello/main.go
go run .
This session will learn how to add external package as example and call code in that package.
mkdir -p greetings
go mod init example.com/greetings
go mod edit -replace example.com/greetings=../greetings
go mod tidy
go run .
go run .
go run .
go test -v
go build
go install