jsonnet-bundler/vendor/github.com/alecthomas/units
2019-04-23 14:26:40 +02:00
..
bytes.go Vendor dependencies with dep and commit vendor/ 2018-04-28 16:12:36 +02:00
COPYING Vendor dependencies with dep and commit vendor/ 2018-04-28 16:12:36 +02:00
doc.go Vendor dependencies with dep and commit vendor/ 2018-04-28 16:12:36 +02:00
README.md Use Drone as the CI with a working pipeline (#28) 2019-04-23 14:26:40 +02:00
si.go Vendor dependencies with dep and commit vendor/ 2018-04-28 16:12:36 +02:00
util.go Vendor dependencies with dep and commit vendor/ 2018-04-28 16:12:36 +02: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