You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
clair/vendor/github.com/alecthomas/units
Quentin Machu 3ec262dd51
Initial commit
9 years ago
..
COPYING Initial commit 9 years ago
README.md Initial commit 9 years ago
bytes.go Initial commit 9 years ago
doc.go Initial commit 9 years ago
si.go Initial commit 9 years ago
util.go Initial commit 9 years ago

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