commodity

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commodity

type Commodity struct {
	Name        string
	Type        price.CommodityType
	Code        string
	Harvest     int
	TaxCategory TaxCategoryType `mapstructure:"tax_category"`
}

func All

func All() []Commodity

func FindByCode added in v0.3.0

func FindByCode(name string) Commodity

func FindByName

func FindByName(name string) Commodity

func FindByType added in v0.3.0

func FindByType(commodityType price.CommodityType) []Commodity

type TaxCategoryType

type TaxCategoryType string
const (
	Debt   TaxCategoryType = "debt"
	Equity TaxCategoryType = "equity"
)

Jump to

Keyboard shortcuts

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