The beauty of Go
Kanishk Dudeja

“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.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.