luadoc

package module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Unlicense Imports: 5 Imported by: 20

README

gopher-luadoc

Go Reference

WIP

The API is not stable and may change at any time. No documentation for now...

Self-documenting gopher-lua framework for libraries.

Note: This is a fork of mangalorg/gopher-luadoc.

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