package
0.0.0-20230914172913-bcd3ffb7be72
Repository: https://github.com/freshcloud-io/go-sdk.git
Documentation: pkg.go.dev
# Functions
MustParse turns the given string into a quantity or panics; for tests or other cases where you know the string is valid.
NewDecimalQuantity returns a new Quantity representing the given value in the given format.
NewMilliQuantity returns a new Quantity representing the given value * 1/1000 in the given format.
NewQuantity returns a new Quantity representing the given value in the given format.
NewScaledQuantity returns a new Quantity representing the given value * 10^scale in DecimalSI format.
ParseQuantity turns str into a Quantity, or returns an error.
# Constants
e.g., 12Mi (12 * 2^20).
e.g., 12e6.
e.g., 12M (12 * 10^6).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Errors that could happen while parsing a string.
No description provided by the author
No description provided by the author
The maximum value we can represent milli-units for.
No description provided by the author
# Structs
Quantity is a fixed-point representation of a number.
QuantityValue makes it possible to use a Quantity as value for a command line parameter.
# Interfaces
CanonicalValue allows a quantity amount to be converted to a string.