mikrotik-exporter/vendor/github.com/alecthomas/units
2017-09-04 22:52:14 -04:00
..
bytes_test.go squash merge from dev branch 2017-09-04 22:52:14 -04:00
bytes.go squash merge from dev branch 2017-09-04 22:52:14 -04:00
COPYING squash merge from dev branch 2017-09-04 22:52:14 -04:00
doc.go squash merge from dev branch 2017-09-04 22:52:14 -04:00
README.md squash merge from dev branch 2017-09-04 22:52:14 -04:00
si.go squash merge from dev branch 2017-09-04 22:52:14 -04:00
util.go squash merge from dev branch 2017-09-04 22:52:14 -04:00

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