prometheus/vendor/github.com/alecthomas/units
Julien Pivotto ef63d8d16d Update vendors
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-02-25 10:33:41 +01:00
..
COPYING
README.md
bytes.go Update vendors 2020-02-25 10:33:41 +01:00
doc.go
go.mod Update vendors 2020-02-25 10:33:41 +01:00
go.sum Update vendors 2020-02-25 10:33:41 +01:00
si.go Update vendors 2020-02-25 10:33:41 +01:00
util.go

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