struct_decl

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL