Arrays vs Slices in Go

Array: fixed, value type arr := [3]int{10, 20, 30} // size is part of the type Fixed size , decided at compile time. [3]int and [4]int are different types . Value semantics when you assign or pass to a function, the whole array is copied . Rarely used directly in production