Documentation
¶
Index ¶
- Variables
- type Box
- func (d *Box) DeleteSet(key string) error
- func (d *Box) GetLastKey() string
- func (d *Box) GetMainKey() (string, error)
- func (d *Box) GetSet(key string) (Set, error)
- func (d *Box) ListAllKeys() []string
- func (d *Box) ListSetWithHiddenContent() []SetViewWithoutContent
- func (d *Box) ListSets() []SetView
- func (d *Box) MainAlreadyExists() bool
- func (d *Box) ModifyBox(box BoxData)
- func (d *Box) ModifySet(key string, content string) error
- func (d *Box) ModifySetTag(key string, tag string) error
- func (d *Box) NewFromSet(set Set) (string, error)
- func (d *Box) NewSet(content, contentType string) (string, error)
- func (d *Box) NewSetWithTag(content, contentType, tag string) (string, error)
- func (d *Box) NewSetsFromOutside(sets []Set) ([]string, error)
- func (d *Box) SearchSetByKeyPattern(pattern string) (string, Set, error)
- func (d *Box) SearchSetByKeyTagPattern(pattern string) (string, Set, error)
- func (d *Box) TagAlreadyExists(tag string) bool
- type BoxData
- type Set
- type SetView
- type SetViewWithoutContent
- type Window
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMainAlreadyExists error = errors.New("main set already exists") ErrMainSetNotFound error = errors.New("main set not found") ErrTagAlreadyExists error = errors.New("tag already exists") ErrTagNotProvided error = errors.New("tag not provided") ErrSetNotFound error = errors.New("set not found") )
Functions ¶
This section is empty.
Types ¶
type Box ¶
type Box struct {
// contains filtered or unexported fields
}
func (*Box) GetLastKey ¶
func (*Box) GetMainKey ¶
func (*Box) ListAllKeys ¶
func (*Box) ListSetWithHiddenContent ¶
func (d *Box) ListSetWithHiddenContent() []SetViewWithoutContent
func (*Box) MainAlreadyExists ¶
func (*Box) NewSetWithTag ¶
func (*Box) SearchSetByKeyPattern ¶
func (*Box) SearchSetByKeyTagPattern ¶
func (*Box) TagAlreadyExists ¶
type BoxData ¶
func JustLoadBox ¶ added in v0.0.6
func JustLoadBox() BoxData
type SetViewWithoutContent ¶
Click to show internal directories.
Click to hide internal directories.