go_study/fabric-main/vendor/github.com/alecthomas/units
Msy-msu ba621c6934 add two projects 2023-07-02 17:15:59 +08:00
..
COPYING add two projects 2023-07-02 17:15:59 +08:00
README.md add two projects 2023-07-02 17:15:59 +08:00
bytes.go add two projects 2023-07-02 17:15:59 +08:00
doc.go add two projects 2023-07-02 17:15:59 +08:00
si.go add two projects 2023-07-02 17:15:59 +08:00
util.go add two projects 2023-07-02 17:15:59 +08: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