Although integers come in lots of sizes in Go, integer constants do not.
There are no constants like "0ll" or "0x0UL". Instead, integer
-constants are evaluated as ideal, large-precision values that
+constants are evaluated as large-precision values that
can overflow only when they are assigned to an integer variable with
too little precision to represent the value.
% helloworld3
hello, world
can't open file; err=No such file or directory
- %
+ %
Rotting cats
----
abcdefghijklmnopqrstuvwxyz
% echo abcdefghijklmnopqrstuvwxyz | ./cat --rot13
nopqrstuvwxyzabcdefghijklm
- %
+ %
</pre>
Fans of dependency injection may take cheer from how easily interfaces