alertmanager/vendor/github.com/alecthomas/units
Calle Pettersson 608848390f Switch amtool to kingpin (#976)
* Switch cmd/amtool to kingpin

* Touch-ups

* Implement long help

* Add missing short-form of --output

* Fix backwards compatibility for config file options

* Fix vendoring

* Review fixes

* Fix flag word order
2017-12-22 11:17:13 +01:00
..
bytes.go Switch amtool to kingpin (#976) 2017-12-22 11:17:13 +01:00
COPYING Switch amtool to kingpin (#976) 2017-12-22 11:17:13 +01:00
doc.go Switch amtool to kingpin (#976) 2017-12-22 11:17:13 +01:00
README.md Switch amtool to kingpin (#976) 2017-12-22 11:17:13 +01:00
si.go Switch amtool to kingpin (#976) 2017-12-22 11:17:13 +01:00
util.go Switch amtool to kingpin (#976) 2017-12-22 11:17:13 +01: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