File: doc.go

package info (click to toggle)
golang-github-alecthomas-units 0.0~git20151022.0.2efee85-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch, stretch-backports
  • size: 84 kB
  • ctags: 56
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Package units provides helpful unit multipliers and functions for Go.
//
// The goal of this package is to have functionality similar to the time [1] package.
//
//
// [1] http://golang.org/pkg/time/
//
// It allows for code like this:
//
//     n, err := ParseBase2Bytes("1KB")
//     // n == 1024
//     n = units.Mebibyte * 512
package units