filters

package
v0.0.0-...-6daa211 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Week  = time.Hour * 24 * 7
	Month = time.Hour * 24 * 30
)

Time constants

Variables

This section is empty.

Functions

func ByMonth

func ByMonth(d diary.Diary) *diary.Diary

ByMonth get events that fall in the last month

func ByRange

func ByRange(d diary.Diary, from time.Time, to time.Time) *diary.Diary

ByRange gets the subset of the diary that falls in a time range

func ByTag

func ByTag(d diary.Diary, tag string) *diary.Diary

ByTag returns the entries that have that a given tag

func ByWeek

func ByWeek(d diary.Diary) *diary.Diary

ByWeek gets events that fall in the last week

Types

This section is empty.

Jump to

Keyboard shortcuts

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