prometheus/vendor/github.com/alecthomas/units
Fabian Reinartz 8088600202 vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
..
COPYING vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
README.md vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
bytes.go 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
si.go vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +02:00
util.go vendor: add kingpin, drop unused deps 2017-06-20 17:37:40 +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