-
Don’t slice or index a string unless you know it’s single-byte content.
-
Never convert an int to string with string(x).
-
Always initialize maps before writing.
-
Use the comma-ok idiom whenever a map’s zero value is a legitimate value.
-
Check the slices, bytes, and maps packages before writing your own helper.
Progress is saved on this device.