luadoc

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	String  = "string"
	Number  = "number"
	Boolean = "boolean"
	Table   = "table"
	Any     = "any"
)

Variables

This section is empty.

Functions

func Enum

func Enum(members ...string) string

func List

func List(of string) string

func Map

func Map(keys string, values string) string

func TableLiteral

func TableLiteral(keysAndValues ...string) string

Types

type Class

type Class struct {
	Name        string
	Description string
	Methods     []*Method
}

type Func

type Func struct {
	Name        string
	Description string
	Value       lua.LGFunction
	Generics    []string
	Params      []*Param
	Returns     []*Param
}

func (Func) AsType

func (f Func) AsType() string

type Lib

type Lib struct {
	Name        string
	Description string
	Vars        []*Var
	Funcs       []*Func
	Classes     []*Class
	Libs        []*Lib
}

func (*Lib) Loader

func (l *Lib) Loader() lua.LGFunction

func (*Lib) LuaDoc

func (l *Lib) LuaDoc() string

func (*Lib) Value

func (l *Lib) Value(state *lua.LState) *lua.LTable

type Method

type Method struct {
	Name        string
	Description string
	Value       lua.LGFunction
	Generics    []string
	Params      []*Param
	Returns     []*Param
}

type Param

type Param struct {
	Name        string
	Description string
	Type        string
	Optional    bool
}

func (*Param) String

func (p *Param) String() string

type Var

type Var struct {
	Name        string
	Description string
	Value       lua.LValue
	Type        string
}

Jump to

Keyboard shortcuts

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