Node_Exporter/vendor/github.com/alecthomas/units
Simon Pasquier cfc06075d1 Bump github.com/prometheus/common to v0.7.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2019-09-16 10:59:12 +02:00
..
bytes.go Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
COPYING 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
go.mod Bump github.com/prometheus/common to v0.7.0 2019-09-16 10:59:12 +02:00
README.md 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

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