From f6ceaff755f444ec5291b3a059f849bf58dc012a Mon Sep 17 00:00:00 2001 From: Yuriy Taraday Date: Sat, 5 May 2018 23:11:29 +0400 Subject: [PATCH] Add comments to B, KiB and MiB units --- units.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/units.go b/units.go index c60d1b5..0368650 100644 --- a/units.go +++ b/units.go @@ -18,7 +18,10 @@ package libvirt const ( + // B - byte B = 1 + // KiB - kibibyte KiB = 1024 * B + // MiB - mebibyte MiB = 1024 * KiB )