“Go is statically typed. This means that you need to declare types for all your variables and your function arguments (and return variables) at compile time.”
Not necessarily for variables. Types in variable declarations are optional. So you can write “i := 42” or “var i int; i = 42” and they will both work.
I believe types are necessaary for functions and function paramaters tho.