go_document

package module
v0.0.0-...-fcbdb15 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 10 Imported by: 2

README

go-document

获取go代码注释

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAst

func ParseAst(pkgPath string, f *ast.File) (err error)

func ParseFile

func ParseFile(fileName string) (*ast.File, error)

Types

type Doc

type Doc struct {
	Packages map[string]*types.PkgData
	Structs  map[string]*types.StructData
	Funcs    map[string]*types.FuncData
	// contains filtered or unexported fields
}

func (*Doc) AddPkgPath

func (d *Doc) AddPkgPath(dir string) *Doc

func (*Doc) AddPkgPaths

func (d *Doc) AddPkgPaths(dirs []string) *Doc

func (*Doc) Build

func (d *Doc) Build() error

func (*Doc) SetBaseDir

func (d *Doc) SetBaseDir(dir string) *Doc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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