Versions in this module Expand all Collapse all v4 v4.14.1 Apr 26, 2023 Changes in this version + func LineAndColOf(input, clip []rune) (line, col int) + func ParseDotEnvFile(envFileBytes []byte) (map[string]string, error) + type Context struct + Functions *query.FunctionSet + Methods *query.MethodSet + func EmptyContext() Context + func GlobalContext() Context + func (pCtx Context) CustomImporter(fn func(name string) ([]byte, error)) Context + func (pCtx Context) Deactivated() Context + func (pCtx Context) DisabledImports() Context + func (pCtx Context) HasNamedContext(name string) bool + func (pCtx Context) InitFunction(name string, args *query.ParsedParams) (query.Function, error) + func (pCtx Context) InitMethod(name string, target query.Function, args *query.ParsedParams) (query.Function, error) + func (pCtx Context) WithImporter(importer Importer) Context + func (pCtx Context) WithImporterRelativeToFile(pathStr string) Context + func (pCtx Context) WithNamedContext(name string) Context + type DelimitedResult struct + Delimiter []any + Primary []any + type Error struct + Err error + Expected []string + Input []rune + func NewError(input []rune, expected ...string) *Error + func NewFatalError(input []rune, err error, expected ...string) *Error + func ParseField(pCtx Context, expr string) (*field.Expression, *Error) + func ParseMapping(pCtx Context, expr string) (*mapping.Executor, *Error) + func (e *Error) Add(from *Error) + func (e *Error) Error() string + func (e *Error) ErrorAtChar(input []rune) string + func (e *Error) ErrorAtPosition(input []rune) string + func (e *Error) ErrorAtPositionStructured(filepath string, input []rune) string + func (e *Error) IsFatal() bool + func (e *Error) Unwrap() error + type Func func([]rune) Result + func Array() Func + func BestMatch(parsers ...Func) Func + func Boolean() Func + func Char(c rune) Func + func Comment() Func + func Delimited(primary, delimiter Func) Func + func DelimitedPattern(start, primary, delimiter, stop Func, allowTrailing bool) Func + func Discard(parser Func) Func + func DiscardAll(parser Func) Func + func EmptyLine() Func + func EndOfInput() Func + func Expect(parser Func, expected ...string) Func + func InRange(lower, upper rune) Func + func InSet(set ...rune) Func + func JoinStringPayloads(p Func) Func + func LiteralValue() Func + func MustBe(parser Func) Func + func Newline() Func + func NewlineAllowComment() Func + func NotChar(c rune) Func + func NotInSet(set ...rune) Func + func Nothing() Func + func Null() Func + func Number() Func + func Object() Func + func OneOf(parsers ...Func) Func + func Optional(parser Func) Func + func QuotedString() Func + func Sequence(parsers ...Func) Func + func SnakeCase() Func + func SpacesAndTabs() Func + func Term(term string) Func + func TripleQuoteString() Func + func UntilFail(parser Func) Func + func UntilTerm(term string) Func + type ImportError struct + func NewImportError(path string, input []rune, err *Error) *ImportError + func (i *ImportError) Error() string + type Importer interface + Import func(pathStr string) ([]byte, error) + RelativeToFile func(filePath string) Importer + type Result struct + Err *Error + Payload any + Remaining []rune + func Fail(err *Error, input []rune) Result + func Success(payload any, remaining []rune) Result Other modules containing this package github.com/dafanshu/benthos/v3