Skip to content

Instantly share code, notes, and snippets.

@kladov
Created September 4, 2018 11:48
Show Gist options
  • Save kladov/2d5bab3d7973d5c77e405f0c509532c5 to your computer and use it in GitHub Desktop.
Save kladov/2d5bab3d7973d5c77e405f0c509532c5 to your computer and use it in GitHub Desktop.
const (
BYTE = 1.0 << (10 * iota)
KILOBYTE
MEGABYTE
GIGABYTE
TERABYTE
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment