Versions in this module Expand all Collapse all v1 v1.1.0 Aug 14, 2023 v1.0.0 Aug 14, 2023 Changes in this version + var AnnotationCompile = regexp.MustCompile("`(\\w+:\"\\w+\"\\s*)`") + var ConstBlockCmp = regexp.MustCompile(`(?m)^const \((\s+\w+([\t ]+(` + paramType + `)?([\t ]+=[\t ]+.+?)?)+\s*\)`) + var ConstBlockLineCmp = VarBlockLineCmp + var ConstLineCmp = regexp.MustCompile(`(?m)^const (\w+(?: (?:` + paramType + `)?(?: = .+?)?)\s+$`) + var EmptyLineCompile = regexp.MustCompile(`(?m)^\s*$[\r\n]*|[\r\n]+\s+\z`) + var FuncGlobalCmp = regexp.MustCompile(`(?m)^func (\w+)(` + funcParamList + `)\s*?\{`) + var ImportBlockCmp = regexp.MustCompile(`(?m)^import (\((\s+(\w+ )?("([\w/.]+)"))+\s*\)|"([\w/.]+)")`) + var ImportBlockSubCmp = regexp.MustCompile(`"([\w/.]+)"`) + var InterfaceCmp = regexp.MustCompile(...) + var InterfaceDepsCmp = regexp.MustCompile(`\w+(?:, \w+)*? ((?:` + paramType + `)(?:, )?`) + var InterfaceLineCmp = regexp.MustCompile(`[\t ]+(\w+)(\(.*?\))(.*)?`) + var LineComment = regexp.MustCompile(`//.*`) + var MultiComment = regexp.MustCompile(`/\*(\n|.)*?\*/`) + var Null = []byte("") + var PackageCmp = regexp.MustCompile(`(?m)^package (\w+)`) + var StructCmp = regexp.MustCompile(...) + var StructFieldCmp = regexp.MustCompile(`(?m)^[\t ]+(\w+(?:, \w+)*)[\t ]+((?:(?:` + paramType + `)+)\s*$`) + var StructFuncCmp = regexp.MustCompile(...) + var TypeCmp = regexp.MustCompile(`(?m)^type (\w+) ((?:` + paramType + `)\s+$`) + var TypeSuperCmp = regexp.MustCompile(`(?m)^[\t ]+(\w+)\s*$`) + var VarBlockCmp = regexp.MustCompile(`(?m)^var \((\s+\w+([\t ]+(` + paramType + `)?([\t ]+=[\t ]+.+)?)+\s*\)`) + var VarBlockLineCmp = regexp.MustCompile(`[\t ](\w+(?:[\t ]+(?:` + paramType + `)?(?:[\t ]+=[\t ]+[^\n\r]+)?)`) + var VarLineCmp = regexp.MustCompile(`(?m)^var (\w+(?: (?:` + paramType + `)?(?: = .+?)?){?\s+$`) + func BindingStructs(structs []*Struct, mFuncsPointer *[]*MFunc) + func ClearAnnotation(bs []byte) []byte + func ClearEmptyLine(bs []byte) []byte + func ClearLineComment(bs []byte) []byte + func ClearMultiComment(bs []byte) []byte + func ClenCode(bs []byte) []byte + func FindAllConsts(content []byte) (consts []string) + func FindAllImports(content []byte) (imports []string) + func FindAllVars(content []byte) (vars []string) + func FindPackage(content []byte) string + type GFunc struct + Header string + Name string + Types []string + func FindAllGFuncs(content []byte) (v []*GFunc) + type Interface struct + Funcs []*GFunc + Name string + Supers []string + func FindAllInterfaces(content []byte) (interfaces []*Interface) + type MFunc struct + Master string + func FindAllMFuncs(content []byte) (mFuncs []*MFunc) + type Struct struct + Fields []string + Funcs []*MFunc + Name string + Package string + Supers []string + func FindAllStructs(content []byte, pkg string) (structs []*Struct)