statsd_exporter/vendor/github.com/alecthomas/units
Frank Davidson d55b42eabb :Issue 234: Split into reusable packages.
Signed-off-by: Frank Davidson <frank_davidson@manulife.com>
Signed-off-by: Frank Davidson <ffdavidson@gmail.com>
2020-04-08 15:29:49 -04:00
..
bytes.go :Issue 234: Split into reusable packages. 2020-04-08 15:29:49 -04:00
COPYING :Issue 234: Split into reusable packages. 2020-04-08 15:29:49 -04:00
doc.go :Issue 234: Split into reusable packages. 2020-04-08 15:29:49 -04:00
go.mod :Issue 234: Split into reusable packages. 2020-04-08 15:29:49 -04:00
README.md :Issue 234: Split into reusable packages. 2020-04-08 15:29:49 -04:00
si.go :Issue 234: Split into reusable packages. 2020-04-08 15:29:49 -04:00
util.go :Issue 234: Split into reusable packages. 2020-04-08 15:29:49 -04: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