Hello all,
I have experience in Python but I am new in Go, and I’m having a hard time understanding how packages and the various execution commands work.
In particular, I am looking at this repository. In the README.md they give the option to run the tests or go to the cmd/setup directory and run go build
.
I understand that all the *.go files in the repository belong to the same package, except those in cmd/setup which have package main.
I also tried myself to run go run main.go
within the go/setup directory but I’m getting undefined errors.
Can someone help me understand the logic behind all this?