Documentation
¶
Overview ¶
Package datasize provides a ByteSize type for representing data sizes in bytes, and functions for parsing and formatting ByteSize values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteSize ¶
ByteSize is a type for representing data sizes in bytes.
func MustParseString ¶
func ParseString ¶
type Opt ¶
Opt is an options.Opt for format.Format.
func NewOpt ¶
func NewOpt(key string, flag *options.Flag, defaultVal ByteSize, usage, help string, tags ...string, ) Opt
NewOpt returns a new datasize.Opt instance.
Click to show internal directories.
Click to hide internal directories.