bytesize

package module
v0.0.0-...-c93b078 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: BSD-3-Clause Imports: 5 Imported by: 2

README

ByteSize - Format byte size to various human readable formats

Documentation

Overview

Package bytesize format byte size to various human readable formats

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base10

type Base10 = SI

type Base10Full

type Base10Full = SIFull

type Base2

type Base2 uint64

Base2 uses KibiByte(KiB), MebiByte(MiB), GibiByte(GiB), TebiByte(TiB), PebiByte(PiB), Exbiyte(EiB). Showing decimal format like 123.456 MiB

func (Base2) String

func (n Base2) String() string

String implements fmt.Stringer

type Base2Full

type Base2Full uint64

Base2Full uses KibiByte(KiB), MebiByte(MiB), GibiByte(GiB), TebiByte(TiB), PebiByte(PiB), Exbiyte(EiB). Showing full parts like 123 MiB 456 KiB 789 Bytes

func (Base2Full) String

func (n Base2Full) String() string

String implements fmt.Stringer

type Comma

type Comma int64

Comma formats decimal digits into comma-separated format. Like 123,456,789

Reference:

func (Comma) String

func (c Comma) String() string

String implements fmt.Springer

type SI

type SI uint64

SI uses KiloByte(KB), MegaByte(MB), GigaByte(GB), TeraByte(TB), PetaByte(PB), ExaByte(EB). Showing full parts like 123.456 MB

func (SI) String

func (n SI) String() string

String implements fmt.Stringer

type SIFull

type SIFull uint64

Base10Full uses KiloByte(KB), MegaByte(MB), GigaByte(GB), TeraByte(TB), PetaByte(PB), ExaByte(EB). Showing full parts like 123 MB 456 KB 789 Bytes

func (SIFull) String

func (n SIFull) String() string

String implements fmt.Stringer

Jump to

Keyboard shortcuts

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