gitee.com/zhongguo168a/gocodes@v0.0.0-20230609140523-e1828349603f/datax/schemax/decl-func.go (about) 1 package schemax 2 3 type InterfaceDecl struct { 4 // 5 Package string 6 7 Comments []string 8 // 9 Name string 10 // 11 Kind int 12 // 13 Fields []*Field 14 } 15 16 func (decl *InterfaceDecl) GetName() string { 17 return decl.Name 18 } 19 20 func (decl *InterfaceDecl) GetPackage() string { 21 return decl.Package 22 } 23 24 func (decl *InterfaceDecl) GetIdent() string { 25 return decl.Package + "." + decl.Name 26 } 27 28 func (decl *InterfaceDecl) RefType() string { 29 return "interface" 30 }