Created
March 2, 2017 16:15
-
-
Save ehmo/a447bae8155a758e07bbf6e875b6cad8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// define constants for bytesize | |
type ByteSize float64 | |
const ( | |
_ = iota | |
KB ByteSize = 1 << (10 * iota) | |
MB | |
GB | |
TB | |
PB | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment