cloudflared-mirror/vendor/github.com/alecthomas/units
Igor Postelnik 741cd66c9e TUN-3375: Upgrade coredns and prometheus dependencies 2020-09-09 13:14:38 -05:00
..
COPYING AUTH-2596 added new logger package and replaced logrus 2020-05-27 17:07:19 -05:00
README.md AUTH-2596 added new logger package and replaced logrus 2020-05-27 17:07:19 -05:00
bytes.go TUN-3375: Upgrade coredns and prometheus dependencies 2020-09-09 13:14:38 -05:00
doc.go AUTH-2596 added new logger package and replaced logrus 2020-05-27 17:07:19 -05:00
go.mod TUN-3375: Upgrade coredns and prometheus dependencies 2020-09-09 13:14:38 -05:00
go.sum TUN-3375: Upgrade coredns and prometheus dependencies 2020-09-09 13:14:38 -05:00
si.go TUN-3375: Upgrade coredns and prometheus dependencies 2020-09-09 13:14:38 -05:00
util.go AUTH-2596 added new logger package and replaced logrus 2020-05-27 17:07:19 -05: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