Documentation ¶
Overview ¶
Package quantity represents a quantity in the system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Quantity ¶
type Quantity struct {
// contains filtered or unexported fields
}
Quantity represents a quantity in the system.
func MustParse ¶
MustParse parses the string value and returns a quantity if the value complies with the rules for a quantity. If an error occurs the function panics.
func Parse ¶
Parse parses the float value and returns a quantity if the value complies with the rules for quantity.
func (Quantity) MarshalText ¶
MarshalText provides support for logging and any marshal needs.
Click to show internal directories.
Click to hide internal directories.