Documentation ¶
Index ¶
- Variables
- type CachePackage
- type DocumentHelper
- func (h *DocumentHelper) GetAllLibs() []string
- func (h *DocumentHelper) HelpInfo() string
- func (h *DocumentHelper) LibFuncAutoCompletion(libName, funcName string) string
- func (h *DocumentHelper) LibFuncDefinitionStr(libName, funcName string) string
- func (h *DocumentHelper) LibFuncHelpInfo(libName, funcName string) string
- func (h *DocumentHelper) LibHelpInfo(name string) string
- func (h *DocumentHelper) ShowHelpInfo()
- func (h *DocumentHelper) ShowLibFuncHelpInfo(libName, funcName string)
- func (h *DocumentHelper) ShowLibHelpInfo(name string)
- type Field
- type FuncDecl
- type LibInstance
- type ScriptLib
Constants ¶
This section is empty.
Variables ¶
View Source
var (
InterfaceToAnyRegep, _ = regexp.Compile(`interface\s*\{\}`)
)
Functions ¶
This section is empty.
Types ¶
type CachePackage ¶ added in v1.2.7
type CachePackage struct {
// contains filtered or unexported fields
}
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 Params []*Field Results []*Field VSCodeSnippets string }
func FuncToFuncDecl ¶
type LibInstance ¶
func AnyTypeToLibInstance ¶
func AnyTypeToLibInstance(libName, name string, typ reflect.Type, value interface{}) *LibInstance
func (*LibInstance) String ¶
func (i *LibInstance) String() string
Click to show internal directories.
Click to hide internal directories.