unit

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBytes

func ToBytes(size float64, unit Unit) int64

ToBytes converts unit to bytes

Types

type Unit

type Unit string

func ParseSize

func ParseSize(size string) (float64, Unit, error)

ParseSize validates and parse string size

Jump to

Keyboard shortcuts

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