bytes

package
v0.0.0-...-9e8532d Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteSize

type ByteSize float64

ByteSize ...

const (

	// KB ...
	KB ByteSize = 1 << (10 * iota) // 1 << (10*1)
	// MB ...
	MB // 1 << (10*2)
	// GB ...
	GB // 1 << (10*3)
	// TB ...
	TB // 1 << (10*4)
	// PB ...
	PB // 1 << (10*5)
	// EB ...
	EB // 1 << (10*6)
	// ZB ...
	ZB // 1 << (10*7)
	// YB ...
	YB // 1 << (10*8)
)

func (ByteSize) String

func (b ByteSize) String() string

Jump to

Keyboard shortcuts

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