spec

package
v0.1.0-pre.10 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(L *lua.LState) int

func Ignore

func Ignore(L *lua.LState) int

func NotNull

func NotNull(L *lua.LState) int

func Save

func Save(L *lua.LState) int

Types

type Argument

type Argument struct {
	// Name of the argument
	// If the name ends with a ?, it is optional
	// If the name is ... it is variadic
	Name string
	Type []ArgumentType
	Doc  string
}

type ArgumentType

type ArgumentType interface {
	String() string
}

type ArgumentTypeA

type ArgumentTypeA int
const (
	ArgumentTypeString ArgumentTypeA = iota
	ArgumentTypeNumber
	ArgumentTypeBoolean
	ArgumentTypeTable
)

func (ArgumentTypeA) String

func (a ArgumentTypeA) String() string

type ContainsString

type ContainsString struct {
	Contains      string
	CaseSensitive bool
}

type Function

type Function struct {
	Name    string
	Args    []Argument
	Doc     string
	Func    lua.LGFunction
	Returns []ArgumentType
}

type HasHelperFunctions

type HasHelperFunctions interface {
	HelperFunctions() []*Function
}

type IgnoreData

type IgnoreData struct{}

type NotNullData

type NotNullData struct{}

type Null

type Null struct{}

type Runner

type Runner interface {
	Name() string
	Functions() []*Function
}

type SaveData

type SaveData struct {
	Name      string
	AllowNull bool
}

type StringEnum

type StringEnum []string

func (StringEnum) String

func (e StringEnum) String() string

Jump to

Keyboard shortcuts

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