Documentation

Overview

Package units provides common useful printable units.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SizeToString

func SizeToString(s int64) string

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

Types

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

Source Files