pub fn parse_size(size: &str) -> Result<u32, Box<dyn Error + Send + Sync>>Expand description
It parses a string into a number, The units that can be used are k/m/g
Arguments:
size: The size of the file to be generated(uints: k/m/g).
Returns:
A Result<u32, anyhow::Error>