units

package
v0.46.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 273

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteSize

type ByteSize int64

func (*ByteSize) Set

func (b *ByteSize) Set(s string) error

func (ByteSize) String

func (b ByteSize) String() string

type FileSize added in v0.15.0

type FileSize int64

func (FileSize) String added in v0.15.0

func (b FileSize) String() string

Jump to

Keyboard shortcuts

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