Documentation ¶
Overview ¶
Package size provides a converter between a string representation of a size and a number of bytes, and reverse.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteCount ¶
type ByteCount float64
func (ByteCount) MarshalYAML ¶
MarshalYAML() serializes a ByteCount into YAML. To maintain a canonical representation of the value and to preserve compatibility with older parsers, the byte count will always be serialized as a plain integer without a suffix.
func (*ByteCount) UnmarshalYAML ¶
UnmarshalYAML unserializes a YAML representation of the ByteCount.
Click to show internal directories.
Click to hide internal directories.