All Projects → alecthomas → Units

alecthomas / Units

Licence: mit
Helpful unit multipliers and functions for Go

Programming Languages

go
31211 projects - #10 most used programming language

Units - Helpful unit multipliers and functions for Go

The goal of this package is to have functionality similar to the time package.

It allows for code like this:

n, err := ParseBase2Bytes("1KB")
// n == 1024
n = units.Mebibyte * 512
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].