yakdoc

package
v1.2.6-sp3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InterfaceToAnyRegep, _ = regexp.Compile(`interface\s*\{\}`)
)

Functions

This section is empty.

Types

type DocumentHelper

type DocumentHelper struct {
	Libs      map[string]*ScriptLib
	Functions map[string]*FuncDecl
	Instances map[string]*LibInstance
}

func (*DocumentHelper) GetAllLibs

func (h *DocumentHelper) GetAllLibs() []string

func (*DocumentHelper) HelpInfo

func (h *DocumentHelper) HelpInfo() string

func (*DocumentHelper) LibFuncAutoCompletion

func (h *DocumentHelper) LibFuncAutoCompletion(libName, funcName string) string

func (*DocumentHelper) LibFuncDefinitionStr

func (h *DocumentHelper) LibFuncDefinitionStr(libName, funcName string) string

func (*DocumentHelper) LibFuncHelpInfo

func (h *DocumentHelper) LibFuncHelpInfo(libName, funcName string) string

func (*DocumentHelper) LibHelpInfo

func (h *DocumentHelper) LibHelpInfo(name string) string

func (*DocumentHelper) ShowHelpInfo

func (h *DocumentHelper) ShowHelpInfo()

func (*DocumentHelper) ShowLibFuncHelpInfo

func (h *DocumentHelper) ShowLibFuncHelpInfo(libName, funcName string)

func (*DocumentHelper) ShowLibHelpInfo

func (h *DocumentHelper) ShowLibHelpInfo(name string)

type FuncDecl

type FuncDecl struct {
	LibName        string
	MethodName     string
	Document       string
	Decl           string
	VSCodeSnippets string
}

func FuncToFuncDecl

func FuncToFuncDecl(libName, methodName string, f interface{}) *FuncDecl

func (*FuncDecl) String

func (f *FuncDecl) String() string

type LibInstance

type LibInstance struct {
	LibName      string
	InstanceName string
	Type         string
	ValueStr     string
}

func AnyTypeToLibInstance

func AnyTypeToLibInstance(libName, name string, typ reflect.Type, value interface{}) *LibInstance

func (*LibInstance) String

func (i *LibInstance) String() string

type ScriptLib

type ScriptLib struct {
	Name          string
	LibsInstances []*LibInstance
	Functions     map[string]*FuncDecl
	ElementDocs   []string
}

func (*ScriptLib) String

func (l *ScriptLib) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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