typesutil

package
v0.0.0-...-2e69b07 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectPackage

func DetectPackage(typ types.Type, callback func(pkg *types.Package))

DetectPackage :

func IterateAllObjects

func IterateAllObjects(pkg *types.Package, fn func(types.Object))

IterateAllObjects :

func IterateObjects

func IterateObjects(pkg *types.Package, mode IterateMode, fn func(types.Object))

IterateObjects :

func Scan

func Scan(pkg *types.Package) map[types.Type][]types.Object

Scan :

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 :

func (*PackageDetector) Detect

func (d *PackageDetector) Detect(typ types.Type)

Detect :

Jump to

Keyboard shortcuts

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