bytes
CategoryText Processing
SubcategoryFormatters
Stars596
Formats and parses numeric byte values (10K, 2M, 3G, etc.)
About bytes
Gommon
![Coverage Status]()
Common packages for Go.
Requires Go 1.23 or later.
- Bytes — format/parse byte sizes (binary IEC and decimal SI).
- Color — style terminal text.
- Email — send email over SMTP; supports STARTTLS and implicit TLS (SMTPS, port 465).
- Log — simple leveled logger with text and JSON output.
- Random — cryptographically secure random strings over configurable charsets.
Install
go get github.com/labstack/gommon
Frequently Asked Questions
What is bytes?
bytes is a Text Processing library for the Go programming language. Formats and parses numeric byte values (10K, 2M, 3G, etc.)
How do I install bytes?
Install bytes with the Go module system using `go get labstack/gommon/tree/master/bytes`. Check the repository for the current installation instructions.
What category does bytes belong to?
bytes is listed under Text Processing, specifically Formatters.