Gommon [](http://godoc.org/github.com/labstack/gommon) [](https://coveralls.io/r/labstack/gommon)

April 19, 2026 · View on GitHub

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