Documentation ¶
Index ¶
- Constants
- func CheckHeader(fname, s string) error
- func GenGetCode(vtype, vname string, idx int, isStar, udataToBytes bool) string
- func GenLua(filename string, in []byte, formatCode bool) ([]byte, error)
- func GenPushCode(sprefix, vtype, vname string, idx int, isStar, isSlice bool, sliceType string, ...) string
- func ParseDoc(cg *ast.CommentGroup) (name, prefix string, makeUdata, udataToBytes, ok bool)
- func ParseFunc(sprefix string, fd *ast.FuncDecl, idx int, makeUdata bool, udataToBytes bool) ([]string, []string, []CodeItem, []CodeItem, string)
- func ParseTag(tag string) string
- func ParseTypeDoc(cg *ast.CommentGroup) bool
- type Code
- type CodeField
- type CodeFunc
- type CodeItem
- type PkgImport
Constants ¶
View Source
const CodeHeader = "// Code generated by genlua."
Variables ¶
This section is empty.
Functions ¶
func CheckHeader ¶
func GenPushCode ¶
func ParseDoc ¶
func ParseDoc(cg *ast.CommentGroup) (name, prefix string, makeUdata, udataToBytes, ok bool)
func ParseTypeDoc ¶
func ParseTypeDoc(cg *ast.CommentGroup) bool
Types ¶
Click to show internal directories.
Click to hide internal directories.