expression

package
v0.0.0-...-117ffbb Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Windows = "windows"
	Linux   = "linux"
	Macos   = "darwin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Eval(expression string, vars map[string]any) (bool, error)
}

type EnvVars

type EnvVars map[string]any

func (EnvVars) IsEmpty

func (vars EnvVars) IsEmpty(value string) bool

func (EnvVars) IsLinux

func (vars EnvVars) IsLinux() bool

func (EnvVars) IsMacOs

func (vars EnvVars) IsMacOs() bool

func (EnvVars) IsWindows

func (vars EnvVars) IsWindows() bool

type GoExpressionEngine

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

func NewGoExpressionEngine

func NewGoExpressionEngine() *GoExpressionEngine

func (*GoExpressionEngine) Eval

func (e *GoExpressionEngine) Eval(expString string, vars map[string]any) (bool, error)

Jump to

Keyboard shortcuts

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