Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IdentityIf ¶
Types ¶
type Commodity ¶
type Commodity struct { IsCurrency bool // contains filtered or unexported fields }
Commodity represents a currency or security.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a thread-safe collection of commodities.
func NewCommodities ¶
func NewCommodities() *Registry
NewCommodities creates a new thread-safe collection of commodities.
func (*Registry) TagCurrency ¶
TagCurrency tags the commodity as a currency.
Click to show internal directories.
Click to hide internal directories.