postgres_exporter/tools/vendor/github.com/alecthomas/units
2017-06-07 00:53:19 +10:00
..
bytes.go Add self-contained gometalinter build tooling. 2017-06-07 00:53:19 +10:00
COPYING Add self-contained gometalinter build tooling. 2017-06-07 00:53:19 +10:00
doc.go Add self-contained gometalinter build tooling. 2017-06-07 00:53:19 +10:00
README.md Add self-contained gometalinter build tooling. 2017-06-07 00:53:19 +10:00
si.go Add self-contained gometalinter build tooling. 2017-06-07 00:53:19 +10:00
util.go Add self-contained gometalinter build tooling. 2017-06-07 00:53:19 +10: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