keel/vendor/github.com/alecthomas/units
Karolis Rusenas 084654ef61 vendor updated 2018-03-03 11:30:58 +00:00
..
COPYING vendor updated 2017-12-12 08:36:03 +00:00
README.md vendor updated 2017-12-12 08:36:03 +00:00
bytes.go vendor updated 2017-12-12 08:36:03 +00:00
doc.go vendor updated 2017-12-12 08:36:03 +00:00
si.go vendor updated 2017-12-12 08:36:03 +00:00
util.go vendor updated 2017-12-12 08:36:03 +00: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