diary

package
v0.0.0-...-0dfd57a Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(e *Entry) (string, error)

Types

type Entry

type Entry struct {
	Title string `yaml:"title,omitempty"`
	Date  string `yaml:"date,omitempty"`

	TimeMood    map[string]string `yaml:"time_mood,omitempty"`
	AverageMood string            `yaml:"average_mood,omitempty"`
	Grateful    []string          `yaml:"grateful,omitempty"`

	Relevance    string   `yaml:"relevance,omitempty"`
	Achievements []string `yaml:"achievements,omitempty"`
	Event        string   `yaml:"event,omitempty"`
	Quote        string   `yaml:"quote,omitempty"`
	Nutshell     string   `yaml:"nutshell,omitempty"`
	Music        string   `yaml:"music,omitempty"`

	Version string `yaml:"v,omitempty"`

	Text     string `yaml:"-"`
	FileName string `yaml:"-"`
}

func Decode

func Decode(s string) (*Entry, error)

func (Entry) Matches

func (e Entry) Matches(tag string) bool

func (Entry) MatchesInexact

func (e Entry) MatchesInexact(tag string) bool

func (Entry) Tags

func (e Entry) Tags() map[string]int

Jump to

Keyboard shortcuts

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