Confused with packages and execution commands

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 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?

1 Like

Are these tests to identify errors of execution? The first pointed error, is it installation?

All commands pointed error, what does this mean?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.