Documentation
¶
Index ¶
- func StringToBitsHookFunc() mapstructure.DecodeHookFunc
- func StringToBytesHookFunc() mapstructure.DecodeHookFunc
- type Bits
- func (b Bits) Byte() Bytes
- func (b Bits) Exabits() float64
- func (b Bits) Gigabits() float64
- func (b Bits) Kilobits() float64
- func (b Bits) MarshalJSON() ([]byte, error)
- func (b Bits) MarshalText() ([]byte, error)
- func (b Bits) Megabits() float64
- func (b Bits) Petabits() float64
- func (b Bits) String() string
- func (b Bits) Terabits() float64
- func (b *Bits) UnmarshalJSON(bs []byte) error
- func (b *Bits) UnmarshalText(bs []byte) error
- type Bytes
- func (b Bytes) Bit() Bits
- func (b Bytes) Exabytes() float64
- func (b Bytes) Gigabytes() float64
- func (b Bytes) Kilobytes() float64
- func (b Bytes) MarshalJSON() ([]byte, error)
- func (b Bytes) MarshalText() ([]byte, error)
- func (b Bytes) Megabytes() float64
- func (b Bytes) Petabytes() float64
- func (b Bytes) String() string
- func (b Bytes) Terabytes() float64
- func (b *Bytes) UnmarshalJSON(bs []byte) error
- func (b *Bytes) UnmarshalText(bs []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringToBitsHookFunc ¶
func StringToBitsHookFunc() mapstructure.DecodeHookFunc
func StringToBytesHookFunc ¶
func StringToBytesHookFunc() mapstructure.DecodeHookFunc
Types ¶
type Bits ¶
type Bits uint64
func (Bits) MarshalJSON ¶
func (Bits) MarshalText ¶
func (*Bits) UnmarshalJSON ¶
func (*Bits) UnmarshalText ¶
type Bytes ¶
type Bytes uint64
func ParseBytes ¶
func (Bytes) MarshalJSON ¶
func (Bytes) MarshalText ¶
func (*Bytes) UnmarshalJSON ¶
func (*Bytes) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.