notes

package
v0.0.0-...-695a870 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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

func ChoseNote

func ChoseNote(notesArray *[]DNote) error

func DailyNote

func DailyNote() error

Types

type DNote

type DNote struct {
	Date     time.Time
	Contents []byte
	Path     string
}

func (DNote) Delete

func (d DNote) Delete() error

func (DNote) Format

func (d DNote) Format() (string, error)

func (DNote) GetDate

func (d DNote) GetDate() time.Time

func (DNote) GetPath

func (d DNote) GetPath() string

func (DNote) Write

func (n DNote) Write() error

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL