prometheus/vendor/github.com/alecthomas/units
beorn7 da1ca868d1 Update dependencies prior to releasing v2.24
Signed-off-by: beorn7 <beorn@grafana.com>
2020-12-28 17:53:35 +01:00
..
bytes.go Update vendors 2020-02-25 10:33:41 +01:00
COPYING vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
doc.go vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
go.mod Update dependencies prior to releasing v2.24 2020-12-28 17:53:35 +01:00
go.sum Update vendors 2020-02-25 10:33:41 +01:00
README.md vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
si.go Update vendors 2020-02-25 10:33:41 +01:00
util.go vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +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