bytes

package
v2.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes int64
const (
	KB Bytes = 1 << (10 * (iota + 1)) //nolint:mnd
	MB
	GB
	TB
	PB
	EB
)

func (Bytes) Bytes

func (b Bytes) Bytes() float64

func (Bytes) EB

func (b Bytes) EB() float64

func (Bytes) Format

func (b Bytes) Format() float64

func (Bytes) GB

func (b Bytes) GB() float64

func (Bytes) Humanize

func (b Bytes) Humanize(lens ...int) string

func (Bytes) HumanizeValue

func (b Bytes) HumanizeValue(lens ...int) string

func (Bytes) KB

func (b Bytes) KB() float64

func (Bytes) MB

func (b Bytes) MB() float64

func (Bytes) PB

func (b Bytes) PB() float64

func (Bytes) TB

func (b Bytes) TB() float64

func (Bytes) Unit

func (b Bytes) Unit() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL