expr

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	State    *exec.State
	NewState exec.New
	// contains filtered or unexported fields
}

Bool represents bool result expression

func NewBool

func NewBool(newState exec.New, compute internal.Compute) *Bool

NewBool crates a bool expr

func (*Bool) Compute

func (e *Bool) Compute() bool

Compute computes bool expr

func (*Bool) ComputeWithState

func (e *Bool) ComputeWithState(state *exec.State) bool

ComputeWithState computes bool expr

type Float64

type Float64 struct {
	State    *exec.State
	NewState exec.New
	// contains filtered or unexported fields
}

Float64 represents float64 result expression

func NewFloat64

func NewFloat64(newState exec.New, compute internal.Compute) *Float64

NewFloat64 creates a float64 expression

func (*Float64) Compute

func (e *Float64) Compute() float64

Compute computes float64 expression

func (*Float64) ComputeWithState

func (e *Float64) ComputeWithState(state *exec.State) bool

ComputeWithState computes bool expr

type Int

type Int struct {
	State    *exec.State
	NewState exec.New
	// contains filtered or unexported fields
}

Int represents int result expression

func NewInt

func NewInt(newState exec.New, compute internal.Compute) *Int

NewInt creates int expr

func (*Int) Compute

func (e *Int) Compute() int

Compute computes int expr

func (*Int) ComputeWithState

func (e *Int) ComputeWithState(state *exec.State) bool

ComputeWithState computes bool expr

type String

type String struct {
	State    *exec.State
	NewState exec.New
	// contains filtered or unexported fields
}

String represents string result expression

func NewString

func NewString(newState exec.New, compute internal.Compute) *String

NewString crates string expression

func (*String) Compute

func (e *String) Compute() string

Compute computes string expr

func (*String) ComputeWithState

func (e *String) ComputeWithState(state *exec.State) bool

ComputeWithState computes bool expr

Jump to

Keyboard shortcuts

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