Documentation ¶
Index ¶
Constants ¶
View Source
const ( KB MB GB TB PB )
Variables ¶
View Source
var ( ErrBadByteSize = errors.New("invalid bytesize") ErrBadByteSizeUnit = errors.New("invalid bytesize unit") )
Functions ¶
Types ¶
type ByteSize ¶
type ByteSize uint64
func (ByteSize) HumanString ¶
func (ByteSize) MarshalText ¶
func (*ByteSize) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.