models

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateRange

type DateRange struct {
	From time.Time
	To   time.Time
}

func GetRangeToday

func GetRangeToday(start time.Time) DateRange

func GetRangeYesterday

func GetRangeYesterday(start time.Time) DateRange

type Note

type Note struct {
	ID        string
	Tags      []string
	Content   string
	Timestamp time.Time
}

Main note model.

func NewNote

func NewNote(tags []string, content string) Note

NewNote creates a note with a given content and tags.

func (Note) Clone

func (note Note) Clone() Note

Clone creates a copy of a note.

type SearchFilters

type SearchFilters struct {
	DateRange *DateRange

	Tags []string

	Content string
}

Jump to

Keyboard shortcuts

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