Discover Packages
github.com/adambombtastic/home-inventory
pkg
core
entities
package
Version:
v0.0.0-...-38bc8ed
Opens a new window with list of versions in this module.
Published: Jun 19, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Item struct {
ID int `yaml:"ID"`
Name string `yaml:"Name"`
Stock int `yaml:"Stock"`
LastRestock time .Time `yaml:"LastRestock"`
}
const (
ReasonExpired Reason = "Expired"
ReasonNotApplicable Reason = "NA"
ReasonTooFew Reason = "Too Few"
ReasonNone Reason = ""
)
type Requirement struct {
ID int `yaml:"ID"`
Name string `yaml:"Name"`
Quantity int `yaml:"Quantity"`
Units string `yaml:"Units"`
MaxShelfTime int `yaml:"MaxShelfTime"`
ApplicableItems []string `yaml:"ApplicableItems"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.