user

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFunction added in v1.1.0

func DeleteFunction(name string)

func DeleteFunctionVariant added in v1.2.0

func DeleteFunctionVariant(name string, idx int)

func DeleteVariable added in v1.1.0

func DeleteVariable(name string)

func DropFunctions added in v1.1.0

func DropFunctions()

func DropVariables added in v1.1.0

func DropVariables()

func GetVariable added in v1.1.0

func GetVariable(name string) (val interface{}, found bool)

func HasFunction added in v1.1.0

func HasFunction(name string) bool

func HasVariable added in v1.1.0

func HasVariable(name string) bool

func ListFunctions added in v1.1.0

func ListFunctions() map[string]Func

func ListVariables added in v1.1.0

func ListVariables() map[string]interface{}

func SetFunction added in v1.1.0

func SetFunction(name string, function Func)

func SetFunctionVariant added in v1.1.0

func SetFunctionVariant(name string, variant FuncVariant)

func SetVariable added in v1.1.0

func SetVariable(name string, val interface{})

Types

type Func

type Func struct {
	Variants []FuncVariant
}

func GetFunction added in v1.1.0

func GetFunction(name string) (function Func, found bool)

type FuncVariant added in v1.1.0

type FuncVariant struct {
	Args []utils.Word
	Body []utils.Word
}

func (FuncVariant) ArgNames added in v1.1.0

func (v FuncVariant) ArgNames() (pos []string)

func (FuncVariant) String added in v1.1.0

func (v FuncVariant) String() string

Jump to

Keyboard shortcuts

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