alecthomas/units

GitHub: alecthomas/units

为 Go 提供与 time 包风格一致的单位换算与解析功能,覆盖字节、存储、时间等常见计量场景。

Stars: 132 | Forks: 34

[![Go 参考](https://pkg.go.dev/badge/github.com/alecthomas/units.svg)](https://pkg.go.dev/github.com/alecthomas/units) # Units - 适用于 Go 的实用单位乘数与函数 此包的目标是提供与 [time](http://golang.org/pkg/time/) 包类似的功能。 它支持编写如下代码: ``` n, err := ParseBase2Bytes("1KB") // n == 1024 n = units.Mebibyte * 512 ```
标签:EVTX分析, Go, Ruby工具, 单位转换, 基础工具, 开发库, 日志审计