Documentation
¶
Overview ¶
Package du provides disk usage measurement representation. It defines a Size type (uint64) that can be converted to and from human-readable strings with units (K, M, G, etc.).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSizeSyntax = errors.New("bad size syntax")
)
Functions ¶
This section is empty.
Types ¶
type Size ¶
type Size uint64
func (Size) MarshalText ¶ added in v0.5.0
MarshalText implements the encoding.TextMarshaler interface
func (*Size) Scan ¶ added in v0.5.0
Scan implements the sql.Scanner interface for database deserialization
func (*Size) UnmarshalText ¶ added in v0.5.0
UnmarshalText implements the encoding.TextUnmarshaler interface
Click to show internal directories.
Click to hide internal directories.