Structure of a Go Program
See the original posting on DZone Python
Every single programming language has got its own syntax or structure, its own flavor, and thats what makes it standout. Go is no different. Its easy and elegant in its own way, making to it fun to play with. In this article we will be talking about:
- A Go program structure.
- Running a Go program.
- Comments in Go.
- Revisiting the code.
Go Program Structure
To understand a Go program’s structure, we need to have a Go program first, so lets revisit our favorite Hello, World! program.