statsd_exporter/vendor/github.com/alecthomas/units
Matthias Rampke 7f7d5171c3
go mod vendor
Signed-off-by: Matthias Rampke <matthias@prometheus.io>
2020-05-29 08:00:30 +00:00
..
bytes.go go mod vendor 2020-05-29 08:00:30 +00:00
COPYING Update vendor github.com/prometheus/common/... 2017-08-30 17:48:19 +02:00
doc.go Update vendor github.com/prometheus/common/... 2017-08-30 17:48:19 +02:00
go.mod go mod vendor 2020-05-29 08:00:30 +00:00
go.sum go mod vendor 2020-05-29 08:00:30 +00:00
README.md Update vendor github.com/prometheus/common/... 2017-08-30 17:48:19 +02:00
si.go go mod vendor 2020-05-29 08:00:30 +00:00
util.go Update vendor github.com/prometheus/common/... 2017-08-30 17:48:19 +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