Documentation ¶
Index ¶
- Variables
- type ByteSize
- func (s ByteSize) GB() ByteSizeUnit
- func (s ByteSize) GiB() ByteSizeUnit
- func (s ByteSize) KB() ByteSizeUnit
- func (s ByteSize) KiB() ByteSizeUnit
- func (s ByteSize) MB() ByteSizeUnit
- func (s ByteSize) MiB() ByteSizeUnit
- func (s ByteSize) PB() ByteSizeUnit
- func (s ByteSize) PiB() ByteSizeUnit
- func (s ByteSize) TB() ByteSizeUnit
- func (s ByteSize) TiB() ByteSizeUnit
- type ByteSizeUnit
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ByteUnit = []string{"", "K", "M", "G", "T", "P"}
)
Functions ¶
This section is empty.
Types ¶
type ByteSize ¶
type ByteSize uint64
func ParseFromString ¶
func (ByteSize) GB ¶
func (s ByteSize) GB() ByteSizeUnit
func (ByteSize) GiB ¶
func (s ByteSize) GiB() ByteSizeUnit
func (ByteSize) KB ¶
func (s ByteSize) KB() ByteSizeUnit
func (ByteSize) KiB ¶
func (s ByteSize) KiB() ByteSizeUnit
func (ByteSize) MB ¶
func (s ByteSize) MB() ByteSizeUnit
func (ByteSize) MiB ¶
func (s ByteSize) MiB() ByteSizeUnit
func (ByteSize) PB ¶
func (s ByteSize) PB() ByteSizeUnit
func (ByteSize) PiB ¶
func (s ByteSize) PiB() ByteSizeUnit
func (ByteSize) TB ¶
func (s ByteSize) TB() ByteSizeUnit
func (ByteSize) TiB ¶
func (s ByteSize) TiB() ByteSizeUnit
type ByteSizeUnit ¶
func (ByteSizeUnit) String ¶
func (b ByteSizeUnit) String() string
Click to show internal directories.
Click to hide internal directories.