size

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Overview

Package size implements human representation of bytes size.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Byte

type Byte uint64

A Byte represents a number of bytes.

const (
	KB Byte = 1 << (10 * iota)
	MB
	GB
	TB
	PB
	EB
)

Suffixes for KB, MB, GB, TB, PB and EB.

func (Byte) String

func (b Byte) String() string

String represents a Byte with the most appropriate unit.

Jump to

Keyboard shortcuts

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