Versions in this module Expand all Collapse all v1 v1.0.7 Feb 16, 2022 v1.0.6 Feb 10, 2022 v1.0.5 Jan 11, 2022 v1.0.4 Jan 11, 2022 v1.0.3 Jan 11, 2022 v1.0.2 Jan 8, 2022 Changes in this version + const EOS + const VERSION + var GTarsPath = flag.String("tarsPath", "github.com/jslyzt/tarsgo/tars", "Specify the tars source path.") + var TokenMap = [...]string + type ArgInfo struct + IsOut bool + Name string + OriginName string + Type *VarType + type ConstInfo struct + Name string + OriginName string + Type *VarType + Value string + type EnumInfo struct + Mb []EnumMember + Module string + Name string + OriginName string + type EnumMember struct + Key string + Name string + Type int + Value int32 + type FunInfo struct + Args []ArgInfo + HasRet bool + Name string + OriginName string + RetType *VarType + type GenGo struct + Code bytes.Buffer + I []string + Module string + P *Parse + Path string + Prefix string + ProtoName string + TarsPath string + VC int + func NewGenGo(path string, module string, outdir string) *GenGo + func (gen *GenGo) Gen() + type HashKeyInfo struct + Member []string + Name string + type InterfaceInfo struct + DependModule map[string]bool + DependModuleWithJce map[string]string + Fun []FunInfo + Name string + OriginName string + type LexState struct + func NewLexState(source string, buff []byte) *LexState + func (ls *LexState) NextToken(bdesc bool) *Token + type Parse struct + Const []ConstInfo + DependModuleWithJce map[string]bool + Enum []EnumInfo + HashKey []HashKeyInfo + IncChain []string + IncParse []*Parse + Include []string + Interface []InterfaceInfo + Module string + OriginModule string + ProtoName string + Source string + Struct []StructInfo + func ParseFile(path string, incChain []string) *Parse + type SemInfo struct + F float64 + I int64 + S string + type StructInfo struct + DependModule map[string]bool + DependModuleWithJce map[string]string + Mb []StructMember + Name string + OriginName string + type StructMember struct + DefType TK + Default string + Desc string + Key string + OriginKey string + Require bool + Tag int32 + Type *VarType + type StructMemberSorter []StructMember + func (a StructMemberSorter) Len() int + func (a StructMemberSorter) Less(i, j int) bool + func (a StructMemberSorter) Swap(i, j int) + type TK byte + type Token struct + Line int + S *SemInfo + T TK + type VarType struct + CType TK + Type TK + TypeK *VarType + TypeL int64 + TypeSt string + TypeV *VarType + Unsigned bool