Go is increasingly popular for infrastructure tools. Kubernetes, Terraform, and Prometheus are written in Go.
Why Go for infrastructure:
- Compiles to single binary (easy deployment)
- Strong concurrency support
- Fast execution
- Static typing catches errors early
Basic syntax:
package main
import "fmt"
func main() {
items := []string{"a", "b", "c"}
for _, item := range items {
fmt.Println(item)
}
}
Interview tip: If the job posting mentions Go, be prepared for Go coding questions. At minimum, understand the syntax and be able to read Go code.