Documentation
¶
Index ¶
- type Config
- type Note
- type Yaml
- func (y *Yaml) Delete(id string) error
- func (y *Yaml) DeleteByTags(tags []string) error
- func (y *Yaml) Get(id string) (interface{}, error)
- func (y *Yaml) GetAll() (interface{}, error)
- func (y *Yaml) GetByTags(tags []string) (interface{}, error)
- func (y *Yaml) GetTags() ([]string, error)
- func (y *Yaml) Insert(note interface{}) error
- func (y *Yaml) Search(searchWords []string, searchLocations []string) (interface{}, error)
- func (y *Yaml) SearchInCommand(searchWords []string) ([]Note, error)
- func (y *Yaml) SearchInDescription(searchWords []string) ([]Note, error)
- func (y *Yaml) SearchInTags(searchWords []string) ([]Note, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string
}
Config is a struct that represents YAML storage config
type Note ¶
type Note struct {
ID string `yaml:"id"`
Tags []string `yaml:"tags"`
Command string `yaml:"command"`
Description string `yaml:"description"`
}
Note is a struct that represents a note in YAML storage
type Yaml ¶
Yaml is a struct that represents YAML storage
func (*Yaml) DeleteByTags ¶
DeleteByTags deletes notes by tags
func (*Yaml) SearchInCommand ¶
SearchInCommand returns notes by search word in command
func (*Yaml) SearchInDescription ¶
SearchInDescription returns notes by search word in description
Click to show internal directories.
Click to hide internal directories.