From 9ed193cc485ccac41481f8425aeed27a13423ae3 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Fri, 26 Jun 2026 18:55:44 +0000 Subject: [PATCH] add units --- units.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 units.go diff --git a/units.go b/units.go new file mode 100644 index 0000000..5cd38ca --- /dev/null +++ b/units.go @@ -0,0 +1,11 @@ +package proxmoxaas_common_lib + +const KiB = 1024 +const MiB = KiB * 1024 +const GiB = MiB * 1024 +const TiB = GiB * 1024 + +const KB = 1000 +const MB = KB * 1000 +const GB = MB * 1000 +const TB = GB * 1000