units

package module
v0.0.0-...-4d5f09b Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataUnits = []string{"b", "B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"}
View Source
var DataUnitsK = []string{"b", "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"}

Functions

This section is empty.

Types

type DataUnit

type DataUnit uint

data unit == bit

func FromByte

func FromByte(cnt uint) DataUnit

func (DataUnit) HRData

func (this DataUnit) HRData() (float64, string)

func (DataUnit) HRDataConvert

func (this DataUnit) HRDataConvert(n float64, sheet []string) (float64, string)

human-readable datasize unit convert

func (DataUnit) HRDataK

func (this DataUnit) HRDataK() (float64, string)

Jump to

Keyboard shortcuts

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