cast
cast copied to clipboard
Implement ToSizeInBytes(E)
Allow to convert string with size units (such as "10kb") to bytes. This converter is privately used in viper. I think it is great to allow using it from cast. Compared to viper implementation this one allows to have single-letter suffixes.
Signed-off-by: Evgenii Stratonikov [email protected]