VictoriaMetrics/vendor/github.com/alecthomas/units
2023-12-10 13:54:09 +02:00
..
bytes.go vmctl: support of the remote read protocol (#3232) 2022-11-29 22:53:28 +01:00
COPYING vmctl: support of the remote read protocol (#3232) 2022-11-29 22:53:28 +01:00
doc.go vmctl: support of the remote read protocol (#3232) 2022-11-29 22:53:28 +01:00
README.md vmctl: support of the remote read protocol (#3232) 2022-11-29 22:53:28 +01:00
renovate.json5 vendor: run make vendor-update 2023-12-10 13:54:09 +02:00
si.go vmctl: support of the remote read protocol (#3232) 2022-11-29 22:53:28 +01:00
util.go vmctl: support of the remote read protocol (#3232) 2022-11-29 22:53:28 +01: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