Go is a general-purpose language designed with systems programming in mind. It was initially developed at Google in the year 2007 by Robert Griesemer, Rob Pike, and Ken Thompson. It is strongly and statically typed, provides inbuilt support for garbage collection, and supports concurrent programming.
A Go program basically consists of the following parts −
- Package Declaration
- Import Packages
- Functions
- Variables
- Statements and Expressions
- Comments
package main
import "fmt"
func main() {
/* Print Hello, World! */
fmt.Println("Hello, World!")
}