node_exporter/vendor/github.com/alecthomas/units
Calle Pettersson dfe07eaae8 Switch to kingpin flags (#639)
* Switch to kingpin flags

* Fix logrus vendoring

* Fix flags in main tests

* Fix vendoring versions
2017-08-12 15:07:24 +02:00
..
COPYING Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
README.md Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
bytes.go Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
doc.go Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
si.go Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
util.go Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00

README.md

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