bytesize

package
v0.0.0-...-e575721 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KB float64 = 1 << (10 * iota) // 1*2^10=1024
	MB                            // 1*2^20
	GB                            // 1*2^30
	TB                            // 1*2^40
	PB                            // 1*2^50
	EB                            // 1*2^60
)

Variables

This section is empty.

Functions

func ByteSize

func ByteSize(i uint64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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