cast icon indicating copy to clipboard operation
cast copied to clipboard

Implement ToSizeInBytes(E)

Open fyrchik opened this issue 3 years ago • 1 comments

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]

fyrchik avatar Oct 07 '21 16:10 fyrchik

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 07 '21 16:10 CLAassistant