Introduction
The main package and main function are the starting point of a Go program. They tell the computer where to begin running your code.
When you want to create a program that runs by itself.
When you want to build a command-line tool or application.
When you want to test how your code works by running it directly.
When you want to organize your code so it can be executed as a program.