Go aka Golang
Why Go - From book Go for Dummies
Section titled “Why Go - From book Go for Dummies”- Static typing
- C runtime efficiency
- Ease of readability
- Good for microservice apps including:
- CLI applications
- Network systems
Hello World
Section titled “Hello World”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}
Go CLI commands
Section titled “Go CLI commands”go build main.go# Run hello world program./main
# Check go environmentgo env## Change GOOS and GOARCH for different## operating system builds