expression

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval added in v0.3.3

func Eval(expression string, env interface{}) (interface{}, error)

Eval parses and executes an expression.

func Get

func Get(obj interface{}, expression string) (interface{}, error)

Get retrieves a property or calls a method using an expression.

func Put

func Put(obj interface{}, expression string, value interface{}) error

Put sets a property using an expression.

func Store

func Store(obj interface{}, expression string) (*ole.IDispatch, error)

Store retrieves a COM object (IDispatch) using an expression.

Types

type Program added in v0.3.3

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

Program represents a compiled expression.

func Compile added in v0.3.3

func Compile(expression string) (*Program, error)

Compile parses an expression.

func (*Program) Run added in v0.3.3

func (p *Program) Run(env interface{}) (interface{}, error)

Run executes a compiled Program against an environment.

Jump to

Keyboard shortcuts

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