Skip to content

Instantly share code, notes, and snippets.

@Cergoo
Created December 17, 2013 17:55
Show Gist options
  • Save Cergoo/8009525 to your computer and use it in GitHub Desktop.
Save Cergoo/8009525 to your computer and use it in GitHub Desktop.
iota example
type ByteSize float64
const (
_ = iota // ignore first value by assigning to blank identifier
KB ByteSize = 1<<(10*iota)
MB
GB
TB
PB
EB
ZB
YB
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment