match

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ID = "match"

Variables

This section is empty.

Functions

func Bundle

func Bundle(_ map[string]string) core.Bundle

Types

type Case

type Case struct {
	Condition string
	IsDefault bool
	Body      core.Expr
}

type Expr

type Expr struct {
	Subject string
	Cases   []Case
}

func (*Expr) Analyze

func (m *Expr) Analyze(resolver core.CapabilityResolver) error

func (*Expr) Build

func (m *Expr) Build(ctx context.Context, bCtx *core.BuildContext) (action.AnyAction, error)

func (*Expr) Children

func (m *Expr) Children() []core.Expr

func (*Expr) Node

func (*Expr) Node()

Jump to

Keyboard shortcuts

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