Documentation
¶
Index ¶
- type Note
- type Store
- func (s *Store) Create(name, content string) error
- func (s *Store) Delete(name string) error
- func (s *Store) DeleteCurrentNote() error
- func (s *Store) GetCurrentNote() (Note, bool)
- func (s Store) GetEditor() string
- func (s Store) GetNotePath(name string) string
- func (s Store) GetNotes() []Note
- func (s *Store) IsFirstNote() bool
- func (s *Store) LoadNotes() ([]Note, error)
- func (s *Store) RenameCurrentNote(newName string) (Note, error)
- func (s Store) RenameNote(currentName, newName string) (Note, error)
- func (s *Store) SetCurrentNoteName(name string)
- func (s *Store) SetEditor(editor string) error
- func (s *Store) UpdateCurrentNoteContent(newContent string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteCurrentNote ¶
func (*Store) GetCurrentNote ¶
func (Store) GetNotePath ¶
func (*Store) IsFirstNote ¶
used to determine if the note was updated externally which means that its position in the list might have changed
func (*Store) SetCurrentNoteName ¶
func (*Store) UpdateCurrentNoteContent ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.