texpr

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(input string) (*vm.Program, error)

func Run

func Run(program *vm.Program, env any) (any, error)

Types

type Field

type Field struct {
	Path    []string
	Type    reflect.Type
	Comment string
}

type FieldsGetter

type FieldsGetter struct {
	// contains filtered or unexported fields
}

func NewFieldsGetter

func NewFieldsGetter(opts *Options) *FieldsGetter

func (*FieldsGetter) Sprint

func (f *FieldsGetter) Sprint(fields []*Field, colorable bool) string

func (*FieldsGetter) Walk

func (f *FieldsGetter) Walk(v any) ([]*Field, error)

type Option

type Option func(opts *Options)

type Options

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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