pkgtree

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: BSD-3-Clause, MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePkgTree

func ParsePkgTree(pkgPath string, data *parser.DomainMap, verbose bool) error

ParsePkgTree parse go package tree

Types

type GoFile

type GoFile struct {
	parser.GoFile
}

GoFile handles the parsing of one go file

func (*GoFile) GetPackage added in v1.7.2

func (g *GoFile) GetPackage(name string) (*packages.Package, error)

GetPackage loads module by name

func (*GoFile) InspectFile added in v1.7.2

func (g *GoFile) InspectFile(n ast.Node) bool

InspectFile inspects the AST node

Jump to

Keyboard shortcuts

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