Documentation
¶
Index ¶
- Constants
- func ChoseNote(notesArray *[]DNote) error
- func DailyNote() error
- type DNote
- type DNoteScanner
- type DailyNoteManager
- func (d *DailyNoteManager) DeleteByTitle(r io.Reader, n *[]DNote) error
- func (d *DailyNoteManager) GetNotes(p common.Period) ([]DNote, error)
- func (d *DailyNoteManager) JoinNotesByTitle(notes *[]DNote) (io.Reader, error)
- func (d *DailyNoteManager) JoinNotesWithContents(notes *[]DNote) (io.Reader, error)
- func (d *DailyNoteManager) Scan(r io.Reader, scanner DNoteScanner) ([]DNote, error)
- type DateLayout
Constants ¶
View Source
const ( JOINED = "/tmp/.go_seq_notes_joined.md" JOINED_DELETE = "/tmp/.go_seq_notes_delete_joined.md" EOF separator = "#-----------------------------" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DNoteScanner ¶
type DNoteScanner struct {
// contains filtered or unexported fields
}
func NewDNoteScanner ¶
func NewDNoteScanner(r io.Reader) *DNoteScanner
func (*DNoteScanner) Err ¶
func (s *DNoteScanner) Err() error
func (*DNoteScanner) Note ¶
func (s *DNoteScanner) Note() DNote
func (*DNoteScanner) Scan ¶
func (s *DNoteScanner) Scan() bool
type DailyNoteManager ¶
type DailyNoteManager struct{}
func NewDailyNoteManager ¶
func NewDailyNoteManager() *DailyNoteManager
func (*DailyNoteManager) DeleteByTitle ¶
func (d *DailyNoteManager) DeleteByTitle(r io.Reader, n *[]DNote) error
func (*DailyNoteManager) GetNotes ¶
func (d *DailyNoteManager) GetNotes(p common.Period) ([]DNote, error)
Returns the Error of proccesing notes or No notes error if agenda not founded
func (*DailyNoteManager) JoinNotesByTitle ¶
func (d *DailyNoteManager) JoinNotesByTitle(notes *[]DNote) (io.Reader, error)
func (*DailyNoteManager) JoinNotesWithContents ¶
func (d *DailyNoteManager) JoinNotesWithContents(notes *[]DNote) (io.Reader, error)
func (*DailyNoteManager) Scan ¶
func (d *DailyNoteManager) Scan(r io.Reader, scanner DNoteScanner) ([]DNote, error)
type DateLayout ¶
type DateLayout string
const ( FileDate DateLayout = "2006-01-02" FullDate DateLayout = "January 2 2006" )
Click to show internal directories.
Click to hide internal directories.