parse

package
v0.0.0-...-fee78ac Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CAP_KB_BIT = 10
	CAP_MB_BIT = 20
	CAP_GB_BIT = 30
	CAP_TB_BIT = 40
	CAP_PB_BIT = 50

	CAP_K  = "K"
	CAP_M  = "M"
	CAP_G  = "G"
	CAP_T  = "T"
	CAP_P  = "P"
	CAP_KB = "KB"
	CAP_MB = "MB"
	CAP_GB = "GB"
	CAP_TB = "TB"
	CAP_PB = "PB"

	CAPACITY_PATTERN = `^([123456789]\d*)([KMGTP][B]?)$`
)

Variables

This section is empty.

Functions

func CapacityParser

func CapacityParser(capacity string) (int, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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