base

package
Version: v0.0.0-...-e452b70 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotFoundError = errors.New("no content found")

Functions

func Module

func Module(name, description string, author []string, usage string, preprocessor api.Preprocessor, pipes map[string]api.PipeBuilder) api.Module

func NewPipeBuilder

func NewPipeBuilder(must, optional map[string]reflect.Kind, builder func(args map[string]interface{}) (api.Pipe, api.PipeBuildError)) api.PipeBuilder

func NewState

func NewState() api.State

func Preprocessor

func Preprocessor(regex string, exec func(map[string]interface{}, string) (api.State, error)) api.Preprocessor

*

* base.Preprocessor is a regular expression based preprocessor
* It uses a regex string and an execute function as input
*
* The function will not throw an error unless the regexp is invalid

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL