Skip to content

Go aka Golang

  • Static typing
  • C runtime efficiency
  • Ease of readability
  • Good for microservice apps including:
    • CLI applications
    • Network systems
package main
import "fmt"
func main() {
fmt.Println("Hello")
// type inferred as int
var num1 = 5
// Explicit type default set as 0
var num5 int
}
Terminal window
go build main.go
# Run hello world program
./main
# Check go environment
go env
## Change GOOS and GOARCH for different
## operating system builds