luci: Index | Files

package units

import ""

Package units provides common useful printable units.


Package Files

doc.go units.go

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) Set Uses

func (s *Size) Set(str string) error

func (Size) String Uses

func (s Size) String() string

Package units imports 2 packages (graph) and is imported by 11 packages. Updated 2020-08-13. Refresh now. Tools for package owners.