News for hackers. Stuff that matters.
Re:Go Run by skissane on Wednesday February 21, 2024 @10:02PM (#39462670)
You don't need to cover packages. You could just say this: the standard convention is that the source for each Go program lives in its own directory, and it starts running the code in a file called `main.go`. To run the Go program in the current directory, run `go run .`

Introducing the concept of "packages", and the fact that the directory is a package, can be deferred until later.

There are no comments on this comment yet.