Back to godoc.org

Package units

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package units provides common useful printable units.

Index

func SizeToString

func SizeToString(s int64) string

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

type Size

type Size int64

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

func (*Size) Set

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

func (Size) String

func (s Size) String() string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier