parser

package
v0.0.0-...-9285a8a Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotNullOption = "NOTNULL"
	IgnoreOption  = "IGNORE"
)

Variables

This section is empty.

Functions

func RenderTemplate

func RenderTemplate(query string, state map[string]any) (string, error)

Types

type File

type File struct {
	Query   string
	Opts    map[string]string
	Returns string
	Store   map[string]string
}

func Parse

func Parse(b []byte, state map[string]any) (*File, error)

func (*File) AppendStore

func (f *File) AppendStore(val map[string]any, state map[string]any)

func (*File) CmpOpts

func (f *File) CmpOpts() ([]cmp.Option, error)

func (*File) Execute

func (f *File) Execute(state map[string]any, ex func() (any, error)) error

Jump to

Keyboard shortcuts

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