Documentation ¶
Index ¶
Constants ¶
View Source
const ( DecimalRegex = `[-+]?(\d*\.)?\d+(e[-+]?\d+)?` Separator = "#" )
Variables ¶
This section is empty.
Functions ¶
func ParseRange ¶
Types ¶
type Operations ¶
type Operations []Operation
func NewOperations ¶
func NewOperations(literal string) (Operations, error)
func (Operations) Convert ¶
func (operations Operations) Convert(value float64) float64
func (Operations) Revert ¶
func (operations Operations) Revert(value float64) float64
type Units ¶
type Units struct { Name string Operations Operations }
func ParseUnits ¶
func ParseUnits(literal string, globalUnits map[string]Operations) (Units, error)
Click to show internal directories.
Click to hide internal directories.