Documentation ¶
Overview ¶
Package units implements human-friendly representations of common units.
Index ¶
Constants ¶
View Source
const ( Runtime = "ns/op" DataRate = "MB/s" BytesAllocated = "B/op" Allocs = "allocs/op" )
Standard library testing package units.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Quantity ¶
Quantity is a value in some unit.
func BytesBinary ¶
BytesBinary represents the given number of bytes with binary prefixes (multiples of 1024).
Click to show internal directories.
Click to hide internal directories.