int vs int64
When we use int
the system arch dictates if it will be int32
or int64
. This is because go compiler will choose the most efficient integer size.
So when using the int32
or int64
make sure you have a need for it.
Meanwhile, floats
are based on IEEE754
specification. The compiler doesn't set the precision based on the the arch.