lang: Misc changes from an old feature branch

This commit is contained in:
James Shubin
2022-08-04 14:49:24 -04:00
parent 12ae44d563
commit ac39606386
5 changed files with 60 additions and 14 deletions

View File

@@ -22,6 +22,9 @@ import (
"github.com/purpleidea/mgmt/lang/types"
)
// FuncSig is the simple signature that is used throughout our implementations.
type FuncSig = func([]types.Value) (types.Value, error)
// Info is a static representation of some information about the function. It is
// used for static analysis and type checking. If you break this contract, you
// might cause a panic.