Here's how to start a new Go project:
Create a directory: mkdir myproject
Enter it: cd myproject
Initialize: go mod init myproject
Create main.go with your code
Run: go run .
The dot in go run . tells Go to run all files in the current directory. This becomes useful when you have multiple .go files in one package.