pkgutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPkgPath

func GetPkgPath(pkg *packages.Package) (string, error)

GetPkgPath reports pkg path directory.

func IsStdLibPkg

func IsStdLibPkg(pkg *packages.Package) bool

IsStdLibPkg reposrt if pkg is stdlib pkg

func Scan

func Scan(pkgs []*packages.Package, fn Scanner) (err error)

Scan visits all the packages in the import graph

Types

type Scanner

type Scanner interface {
	Scan(*packages.Package) error
}

Scanner will report

Jump to

Keyboard shortcuts

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