Documentation ¶ Index ¶ func Extract(pkgs []*packages.Package) map[string]map[string]*Decl func GetStructDoc(f *ast.File, packageName string) map[string]string type Decl type Field type Method func (m Method) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Extract ¶ func Extract(pkgs []*packages.Package) map[string]map[string]*Decl Extract extracts struct declaration from packages. func GetStructDoc ¶ func GetStructDoc(f *ast.File, packageName string) map[string]string Types ¶ type Decl ¶ type Decl struct { Fields map[string]Field Methods []Method ActualNamedType *types.Named FilePath string } type Field ¶ type Field struct { Kind string Methods []string Fn string } type Method ¶ type Method struct { TypFuc *types.Func } func (Method) String ¶ func (m Method) String() string Source Files ¶ View all Source files extract.go method.go struct.go Click to show internal directories. Click to hide internal directories.