Documentation
¶
Index ¶
- Constants
- type Bytes
- type BytesFormatter
- func (b *BytesFormatter) EB() *BytesFormatter
- func (b *BytesFormatter) Format() string
- func (b *BytesFormatter) GB() *BytesFormatter
- func (b *BytesFormatter) KB() *BytesFormatter
- func (b *BytesFormatter) MB() *BytesFormatter
- func (b *BytesFormatter) PB() *BytesFormatter
- func (b *BytesFormatter) Separator(separator rune) *BytesFormatter
- func (b *BytesFormatter) TB() *BytesFormatter
- func (b *BytesFormatter) Unit(unit Bytes) *BytesFormatter
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes int64
Bytes 字节大小
func (*Bytes) Formatter ¶
func (b *Bytes) Formatter() *BytesFormatter
func (Bytes) MarshalJSON ¶
func (*Bytes) UnmarshalJSON ¶
type BytesFormatter ¶
type BytesFormatter struct {
// contains filtered or unexported fields
}
func NewBytesFormatter ¶
func NewBytesFormatter(size *Bytes) *BytesFormatter
func (*BytesFormatter) EB ¶
func (b *BytesFormatter) EB() *BytesFormatter
func (*BytesFormatter) Format ¶
func (b *BytesFormatter) Format() string
func (*BytesFormatter) GB ¶
func (b *BytesFormatter) GB() *BytesFormatter
func (*BytesFormatter) KB ¶
func (b *BytesFormatter) KB() *BytesFormatter
func (*BytesFormatter) MB ¶
func (b *BytesFormatter) MB() *BytesFormatter
func (*BytesFormatter) PB ¶
func (b *BytesFormatter) PB() *BytesFormatter
func (*BytesFormatter) Separator ¶
func (b *BytesFormatter) Separator(separator rune) *BytesFormatter
func (*BytesFormatter) TB ¶
func (b *BytesFormatter) TB() *BytesFormatter
func (*BytesFormatter) Unit ¶
func (b *BytesFormatter) Unit(unit Bytes) *BytesFormatter
Click to show internal directories.
Click to hide internal directories.