Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 313 Bytes

File metadata and controls

17 lines (12 loc) · 313 Bytes

dehumanize

Convert "humanized" sizes to approximate int64 sizes

Specifically written to convert elasticsearch's tendency to convert sizes to "human readable" 1.2mb style sizes.

Currently supports formats like:

1.1b 1kb 1.304mb 1.3gb 1.2tb 1.2pb

default for an "unconvertable" format is 0

Tests in goconvey