Follow

I started using github.com/c2h5oh/datasize today. It's a nice package for parsing and handling byte sizes (e.g. parsing "2KB" to [value representing 2048 bytes]). It implements TextUnmarshaler so works seamlessly with most TOML/YAML/etc packages.

Sign in to participate in the conversation
Mastodon - NZOSS

This Mastodon instance is provided gratis by the NZ Open Source Society for the benefit of everyone interested in their own freedom and sharing with others. Hosting is generously provided by Catalyst Cloud right here in Aotearoa New Zealand.