In Go, a struct is a composite data type that groups together variables (fields) under a single name. Each field can have a different type, making structs a powerful way to represent complex data structures.

type rect struct {
	width  int32
	height int32
}
r := rect{width: 200, height: 100}
func area(r rect) int32 {
	return r.height * r.width
}
fmt.Println(area(r))