env

package module
v0.0.0-...-20bcb34 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const NamespaceURI = "github.com/agentflare-ai/agentml/env"

Variables

This section is empty.

Functions

func Loader

func Loader() agentml.NamespaceLoader

Loader returns a NamespaceLoader for the env namespace. This allows SCXML documents to read and write environment variables.

Usage in SCXML:

<scxml xmlns:env="github.com/agentflare-ai/agentml/env">
  <env:get name="HOME" location="home_dir" />
  <env:set name="MY_VAR" value="hello" />
</scxml>

Types

type Namespace

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

func (*Namespace) Handle

func (n *Namespace) Handle(ctx context.Context, el xmldom.Element) (bool, error)

func (*Namespace) URI

func (n *Namespace) URI() string

func (*Namespace) Unload

func (n *Namespace) Unload(ctx context.Context) error

Jump to

Keyboard shortcuts

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