Golang - iota
Requirement
Define a function to return a storage size string in a human reading format (KB, MB etc)
type ByteSize float64
const (
_ = iota
KB ByteSize = 1 << (10 * iota)
MB
GB
TB
PB
EB
ZB
YB
)
func (b ...
fabiochen.hashnode.dev1 min read