Releases: iamlongalong/bytesizer
Releases Β· iamlongalong/bytesizer
v1.0.0
π bytesizer v1.0.0 Release Notes
We're thrilled to roll out bytesizer v1.0.0! π₯³ This first official release packs a nifty set of features for handling and converting byte sizes with ease in Go.
What's New? π€
- Units Galore: Constants for Bytes, KB, MB, etc., at your service.
- Smart Calc: Zap! Convert
[]bytetoByteSizein an instant. - Pretty Print: Make
ByteSizereadable with.String()- no more squinting! - Transform: Switch between bytes, KBs, MBs, and more, both as
float64andint. - Parse Power: Turn those "10KB" strings into
ByteSizevalues without breaking a sweat. - Doc Delight: Everything's explained! Just plug and play. π
Sneak Peek π΅οΈ
Here's a byte-sized teaser of bytesizer magic:
// Byte calculating wizardry
size := bytesizer.Calc([]byte("Hello Go"))
// Convert wit to readable charm
fmt.Println(size.String()) // "Hello Go" in bytes!
// Transform with convenience
kilobytes := size.KB()Embrace bytesizer for your Go projects and keep byte boredom at bay! Happy coding! π