Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@iamlongalong iamlongalong released this 12 Mar 05:27
· 1 commit to main since this release

πŸš€ 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 []byte to ByteSize in an instant.
  • Pretty Print: Make ByteSize readable with .String() - no more squinting!
  • Transform: Switch between bytes, KBs, MBs, and more, both as float64 and int.
  • Parse Power: Turn those "10KB" strings into ByteSize values 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! πŸŽ‰