luci: go.chromium.org/luci/common/data/text/units Index | Files

package units

import "go.chromium.org/luci/common/data/text/units"

Package units provides common useful printable units.

Index

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 2018-10-23. Refresh now. Tools for package owners.