Documentation ¶
Index ¶
- func DetectPackage(typ types.Type, callback func(pkg *types.Package))
- func IterateAllObjects(pkg *types.Package, fn func(types.Object))
- func IterateObjects(pkg *types.Package, mode IterateMode, fn func(types.Object))
- func Scan(pkg *types.Package) map[types.Type][]types.Object
- type IterateMode
- type PackageDetector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectPackage ¶
DetectPackage :
func IterateAllObjects ¶
IterateAllObjects :
func IterateObjects ¶
func IterateObjects(pkg *types.Package, mode IterateMode, fn func(types.Object))
IterateObjects :
Types ¶
type IterateMode ¶
type IterateMode int
IterateMode :
const ( ExportedOnly IterateMode = iota All )
IterateMode :
func IterateModeFromBool ¶
func IterateModeFromBool(exportedOnly bool) IterateMode
IterateModeFromBool :
type PackageDetector ¶
type PackageDetector struct {
// contains filtered or unexported fields
}
PackageDetector :
func NewPackageDetector ¶
func NewPackageDetector(callback func(pkg *types.Package)) *PackageDetector
NewPackageDetector :
Click to show internal directories.
Click to hide internal directories.