luci: Index | Files

package units

import ""

Package units provides common useful printable units.


Package Files

doc.go units.go

func Round Uses

func Round(value time.Duration, resolution time.Duration) time.Duration

Round rounds a time.Duration at round.

func SizeToString Uses

func SizeToString(s int64) string

SizeToString pretty prints file size (given as number of bytes).

type Size Uses

type Size int64

Size represents a size in bytes that knows how to print itself.

func (Size) String Uses

func (s Size) String() string

Package units imports 2 packages (graph) and is imported by 12 packages. Updated 2020-04-10. Refresh now. Tools for package owners.