Documentation
¶
Overview ¶
Copyright © 2022-2023 Oliver Götz <developer@geekgasm.eu>
Copyright © 2022-2023 Oliver Götz <developer@geekgasm.eu>
Copyright © 2022-2023 Oliver Götz <developer@geekgasm.eu>
Index ¶
- func PrintInventory(inventory Inventory)
- func RenderSingleXML(inventory Inventory, multiline bool) string
- func RenderXML(inventory Inventory, multiline bool, chunkSize int) []string
- type Inventory
- func AddInventories(inventory1 Inventory, inventory2 Inventory) Inventory
- func IntersectInventories(inventory1 Inventory, inventory2 Inventory) Inventory
- func Multiply(inventory Inventory, factor int) Inventory
- func ReadXmlList(filename string) Inventory
- func SubtractInventories(inventory1 Inventory, inventory2 Inventory) Inventory
- func UnionInventories(inventory1 Inventory, inventory2 Inventory) Inventory
- type Item
- type ItemKey
- type ItemMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintInventory ¶
func PrintInventory(inventory Inventory)
func RenderSingleXML ¶ added in v0.7.0
Types ¶
type Inventory ¶
type Inventory struct {
Items []Item `xml:"ITEM"`
}
func AddInventories ¶
func IntersectInventories ¶
func ReadXmlList ¶
func SubtractInventories ¶
func UnionInventories ¶
type Item ¶
type Item struct {
ItemType string `xml:"ITEMTYPE"`
ItemID string `xml:"ITEMID"`
Color string `xml:"COLOR"`
Maxprice string `xml:"MAXPRICE,omitempty"`
MinQTY int `xml:"MINQTY"`
Condition string `xml:"CONDITION,omitempty"`
Remarks string `xml:"REMARKS,omitempty"`
Notify string `xml:"NOTIFY,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.