doc.go 348 B

1234567891011121314
  1. // Package units provides helpful unit multipliers and functions for Go.
  2. //
  3. // The goal of this package is to have functionality similar to the time [1] package.
  4. //
  5. //
  6. // [1] http://golang.org/pkg/time/
  7. //
  8. // It allows for code like this:
  9. //
  10. // n, err := ParseBase2Bytes("1KB")
  11. // // n == 1024
  12. // n = units.Mebibyte * 512
  13. package units