Documentation ¶
Index ¶
- Constants
- type BitRate
- func (b BitRate) Bits() uint64
- func (b BitRate) Bytes() float64
- func (b BitRate) EBits() float64
- func (b BitRate) EBytes() float64
- func (b BitRate) EiBits() float64
- func (b BitRate) EiBytes() float64
- func (b BitRate) GBits() float64
- func (b BitRate) GBytes() float64
- func (b BitRate) GiBits() float64
- func (b BitRate) GiBytes() float64
- func (d BitRate) HumanReadable() string
- func (d BitRate) HumanReadableBin() string
- func (d BitRate) HumanReadableDec() string
- func (b BitRate) HumanReadableString(flags uint8) string
- func (b BitRate) KBits() float64
- func (b BitRate) KBytes() float64
- func (b BitRate) KiBytes() float64
- func (b BitRate) Kibits() float64
- func (b BitRate) MBytes() float64
- func (d BitRate) MarshalText() ([]byte, error)
- func (b BitRate) Mbits() float64
- func (b BitRate) MiBytes() float64
- func (b BitRate) Mibits() float64
- func (b BitRate) PBits() float64
- func (b BitRate) PBytes() float64
- func (b BitRate) PiBits() float64
- func (b BitRate) PiBytes() float64
- func (b BitRate) PreciseString(flags uint8) string
- func (b BitRate) TBits() float64
- func (b BitRate) TBytes() float64
- func (b BitRate) TiBits() float64
- func (b BitRate) TiBytes() float64
- func (b *BitRate) Unmarshal(size interface{}, dimension string, flags uint8) error
- func (d *BitRate) UnmarshalText(text []byte) error
- type ByteSize
- func (b ByteSize) Bits() uint64
- func (b ByteSize) Bytes() uint64
- func (b ByteSize) EBits() float64
- func (b ByteSize) EBytes() float64
- func (b ByteSize) EiBits() float64
- func (b ByteSize) EiBytes() float64
- func (b ByteSize) GBits() float64
- func (b ByteSize) GBytes() float64
- func (b ByteSize) GiBits() float64
- func (b ByteSize) GiBytes() float64
- func (d ByteSize) HumanReadable() string
- func (d ByteSize) HumanReadableBin() string
- func (d ByteSize) HumanReadableDec() string
- func (b ByteSize) HumanReadableString(flags uint8) string
- func (b ByteSize) KBits() float64
- func (b ByteSize) KBytes() float64
- func (b ByteSize) KiBytes() float64
- func (b ByteSize) Kibits() float64
- func (b ByteSize) MBytes() float64
- func (d ByteSize) MarshalText() ([]byte, error)
- func (b ByteSize) Mbits() float64
- func (b ByteSize) MiBytes() float64
- func (b ByteSize) Mibits() float64
- func (b ByteSize) PBits() float64
- func (b ByteSize) PBytes() float64
- func (b ByteSize) PiBits() float64
- func (b ByteSize) PiBytes() float64
- func (b ByteSize) PreciseString(flags uint8) string
- func (b ByteSize) TBits() float64
- func (b ByteSize) TBytes() float64
- func (b ByteSize) TiBits() float64
- func (b ByteSize) TiBytes() float64
- func (b *ByteSize) Unmarshal(size interface{}, dimension string, flags uint8) error
- func (d *ByteSize) UnmarshalText(text []byte) error
- type Dimension
Constants ¶
View Source
const ( B bitSize = 8 KiB = B << 10 MiB = KiB << 10 GiB = MiB << 10 TiB = GiB << 10 PiB = TiB << 10 EiB = PiB << 10 KB = B * 1000 MB = KB * 1000 GB = MB * 1000 TB = GB * 1000 PB = TB * 1000 EB = PB * 1000 Kibit = bit << 10 Mibit = Kibit << 10 Gibit = Mibit << 10 Tibit = Gibit << 10 Pibit = Tibit << 10 Eibit = Pibit << 10 Mbit = kbit * 1000 Gbit = Mbit * 1000 Tbit = Gbit * 1000 Pbit = Tbit * 1000 Ebit = Pbit * 1000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitRate ¶
type BitRate struct {
// contains filtered or unexported fields
}
func NewBitRate ¶
func (BitRate) HumanReadable ¶
func (BitRate) HumanReadableBin ¶
func (BitRate) HumanReadableDec ¶
func (BitRate) HumanReadableString ¶
func (BitRate) MarshalText ¶
func (BitRate) PreciseString ¶
func (*BitRate) UnmarshalText ¶
type ByteSize ¶
type ByteSize struct {
// contains filtered or unexported fields
}
func NewByteSize ¶
func (ByteSize) HumanReadable ¶
func (ByteSize) HumanReadableBin ¶
func (ByteSize) HumanReadableDec ¶
func (ByteSize) HumanReadableString ¶
func (ByteSize) MarshalText ¶
func (ByteSize) PreciseString ¶
func (*ByteSize) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.