Go Basics
Syntax
Go files consist of the following:
- package declaration
- import packages
- functions
- statements and expressions
Compact code
package main; import ("fmt"); func main() { fmt.Println("Hello World!");}
Go files consist of the following:
package main; import ("fmt"); func main() { fmt.Println("Hello World!");}