dir

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: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddParser

func AddParser(parser ParseDirFunc)

AddParser to the known parser list

func ParseDir

func ParseDir(dirPath, basePath string, data *parser.DomainMap) error

ParseDir calls all known parser for each directory

func ParseDirRec

func ParseDirRec(dirPath string, exclude []string, data *parser.DomainMap, verbose bool) error

ParseDirRec calls all known parser for each directory

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 file node

type ParseDirFunc

type ParseDirFunc func(filePath, basePath string, data *parser.DomainMap) error

ParseDirFunc parses one directory

Jump to

Keyboard shortcuts

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