distiller

package
v0.30.9 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distill

func Distill(distiller Interface, r io.Reader, scannable bool) (interface{}, error)

Types

type Eval

type Eval string

func (*Eval) Distill

func (d *Eval) Distill(input string) (interface{}, bool, error)

type Identity

type Identity struct {
}

func (*Identity) Distill

func (d *Identity) Distill(input string) (interface{}, bool, error)

type Interface

type Interface interface {
	Distill(string) (interface{}, bool, error)
}

type RegexpCapture

type RegexpCapture struct {
	Regexp string `json:"regexp" yaml:"regexp" hcl:"regexp"`
	Index  int    `json:"index,omitempty" yaml:"index,omitempty" hcl:"index,omitempty"`
}

func (*RegexpCapture) Distill

func (d *RegexpCapture) Distill(input string) (interface{}, bool, error)

type RegexpCaptureAll

type RegexpCaptureAll struct {
	Regexp string `json:"regexp" yaml:"regexp" hcl:"regexp"`
	Index  int    `json:"index,omitempty" yaml:"index,omitempty" hcl:"index,omitempty"`
}

func (*RegexpCaptureAll) Distill

func (d *RegexpCaptureAll) Distill(input string) (interface{}, bool, error)

Jump to

Keyboard shortcuts

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