ipmi_exporter/vendor/github.com/alecthomas/units
Conrad Hoffmann 670b92c799 Initial public release 2018-05-24 16:28:06 +02:00
..
COPYING Initial public release 2018-05-24 16:28:06 +02:00
README.md Initial public release 2018-05-24 16:28:06 +02:00
bytes.go Initial public release 2018-05-24 16:28:06 +02:00
doc.go Initial public release 2018-05-24 16:28:06 +02:00
si.go Initial public release 2018-05-24 16:28:06 +02:00
util.go Initial public release 2018-05-24 16:28:06 +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