podman/pkg/strongunits
Brent Baude eb9283c6fd introduce pkg/strongunits
podman could benefit from stronger typing with some of our methods and
functions where uint64s, for example, are used because the unit of
measurement is unknown.  Also, the need to convert between storage units
is critical in podman and this package supports easy conversion as
needed.

to start, we implement the storage units (bytes, KiB, MiB, and GiB)
only.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2023-09-20 11:19:41 -05:00
..
config.go introduce pkg/strongunits 2023-09-20 11:19:41 -05:00
config_test.go introduce pkg/strongunits 2023-09-20 11:19:41 -05:00