I'm a newcomer to Go. I extremely like the language, but I quickly realised that I needed to start dividing my files due to an increase in program size.
go run main.go
(with main.go having been the file with my main() function)
didn't work and I hit a barrier for a while, because I had no clue how to get my program working.
Some quick searching lead me to the answer of
go run main.go other.go ..
where by typing all the files that my package main
consists of, I could get the programming running. However, this is utterly cumbersome and frustrating to do each time.
I write the following self-answered question in order to prevent others like myself who may again hit this barrier.