cloudflared-mirror/vendor/github.com/alecthomas/units
Dalton 046be63253 AUTH-2596 added new logger package and replaced logrus 2020-05-27 17:07:19 -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 AUTH-2596 added new logger package and replaced logrus 2020-05-27 17:07:19 -05:00
doc.go AUTH-2596 added new logger package and replaced logrus 2020-05-27 17:07:19 -05:00
go.mod AUTH-2596 added new logger package and replaced logrus 2020-05-27 17:07:19 -05:00
si.go AUTH-2596 added new logger package and replaced logrus 2020-05-27 17:07:19 -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