VictoriaMetrics/vendor/github.com/alecthomas/units
2023-12-11 10:48:47 +02:00
..
bytes.go vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00
COPYING vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00
doc.go vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00
README.md vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00
renovate.json5 vendor: run make vendor-update 2023-12-11 10:48:47 +02:00
si.go vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00
util.go vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00

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