units

package
v0.13.0-modify Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

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

type FileSize int64

func (FileSize) String

func (b FileSize) String() string

Jump to

Keyboard shortcuts

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