Versions in this module Expand all Collapse all v1 v1.0.1 Mar 31, 2026 Changes in this version + const AnnotationPrefix + func GetFileNames(directory string) ([]string, error) + type Annotation struct + Attributes []map[string]string + Name string + type AnnotationMode string + const AnnotationModeArray + const AnnotationModeMap + type AnnotationParser interface + Parse func(comments []string) map[string]*Annotation + type ArrayAnnotationParser struct + func (a *ArrayAnnotationParser) Parse(comments []string) map[string]*Annotation + type Field struct + DataType string + IsPtr bool + Name string + PackageName string + RealDataType string + type FileDesc struct + FileName string + FullPackageName string + Imports map[string]*ImportDesc + Interfaces []*InterfaceDesc + PackageName string + Structs []*StructDesc + func GetFileDesc(fileName string, mode AnnotationMode) (*FileDesc, error) + func GetFilesDescList(directory string, mode AnnotationMode) ([]*FileDesc, error) + type FileParser struct + func GetFileParser(filePath string) *FileParser + func (f *FileParser) Parse() (*FileDesc, error) + type ImportDesc struct + HasAlias bool + Name string + Path string + type InterfaceDesc struct + Annotations map[string]*Annotation + Comments []string + Description string + Imports map[string]*ImportDesc + Methods []*MethodDesc + Name string + type InterfaceParser struct + func NewInterfaceParser(serviceName string, typeSpec *ast.TypeSpec, genDecl *ast.GenDecl, ...) *InterfaceParser + func (s *InterfaceParser) Parse() (*InterfaceDesc, error) + type MapAnnotationParser struct + func (a *MapAnnotationParser) Parse(comments []string) map[string]*Annotation + type MethodDesc struct + Annotations map[string]*Annotation + Comments []string + Description string + Name string + Params []*Field + Results []*Field + type StructDesc struct + Annotations map[string]*Annotation + Comments []string + Description string + Imports map[string]*ImportDesc + Methods []*MethodDesc + Name string + type StructParser struct + func NewStructParser(serviceName string, typeSpec *ast.TypeSpec, genDecl *ast.GenDecl, ...) *StructParser + func (s *StructParser) Parse() (*StructDesc, error)