How to run a "Go" file?

You may be right. I have figured out how to do it exactly that way with “run” and “build” in the terminal.