One might expect that FromHumanSize("1MiB") would either * return error * return units.MiB (1024 * 1024 * 1024) Currently it does not raise error and returns units.MB (1000 * 1000 * 1000)