Documentation ¶ Index ¶ type ItemStore func Load(r io.Reader) (*ItemStore, error) func New() *ItemStore func (s *ItemStore) Add(b item.ItemV1) error func (s *ItemStore) All() []*item.ItemV1 func (s *ItemStore) Get(name string) *item.ItemV1 func (s *ItemStore) Save(w io.Writer) error func (s *ItemStore) Search(query string, n int) ([]*item.ItemV1, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ItemStore ¶ type ItemStore struct { // contains filtered or unexported fields } func Load ¶ func Load(r io.Reader) (*ItemStore, error) func New ¶ func New() *ItemStore func (*ItemStore) Add ¶ func (s *ItemStore) Add(b item.ItemV1) error func (*ItemStore) All ¶ func (s *ItemStore) All() []*item.ItemV1 func (*ItemStore) Get ¶ func (s *ItemStore) Get(name string) *item.ItemV1 func (*ItemStore) Save ¶ func (s *ItemStore) Save(w io.Writer) error func (*ItemStore) Search ¶ func (s *ItemStore) Search(query string, n int) ([]*item.ItemV1, error) Source Files ¶ View all Source files itemstore.go Directories ¶ Show internal Expand all Path Synopsis search Click to show internal directories. Click to hide internal directories.