qselect

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Highly inspired by text/template

Index

Constants

This section is empty.

Variables

Functions

func RegisterMacro

func RegisterMacro(name, qql string, inTypes []DType, outType DType, injectIt bool) error

Types

type DType

type DType string
const (
	QError       DType = "error"
	QInt         DType = "int"
	QDate        DType = "date"
	QPriority    DType = "priority"
	QDuration    DType = "duration"
	QString      DType = "string"
	QStringSlice DType = "[]string"
	QBool        DType = "bool"
	QItem        DType = "item"
	QItemSlice   DType = "[]item"
)

type Func

type Func func(*todotxt.List, *todotxt.Item) bool

func And

func And(fns ...Func) Func

func CompileQQL

func CompileQQL(query string) (Func, error)

func CompileQuery

func CompileQuery(query string) (Func, error)

func CompileRange

func CompileRange(query string) (Func, error)

func CompileWordSearch

func CompileWordSearch(query string) (Func, error)

func (Func) Filter

func (q Func) Filter(l *todotxt.List) []*todotxt.Item

Jump to

Keyboard shortcuts

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