VictoriaMetrics/vendor/github.com/alecthomas/units
2023-12-11 10:48:47 +02:00
..
bytes.go
COPYING
doc.go
README.md
renovate.json5 vendor: run make vendor-update 2023-12-11 10:48:47 +02:00
si.go
util.go

Go Reference

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