Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Size ¶
Size represents a bytes size in Unit
func Lookup ¶ added in v1.1.0
Lookup returns a new size from the given string, return false if parse failed, use B unit if str has no unit string.
func LookupTo ¶ added in v1.1.0
LookupTo returns a new size from the given string that convert to given unit, return false if failed
func (Size) StringRound ¶ added in v1.1.0
StringRound returns the string representation of the size if n < 0, use the original data as the float representation.
Click to show internal directories.
Click to hide internal directories.