explorer

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPackage

func RegisterPackage(packName string, pkg Package)

Types

type Discoverer

type Discoverer struct {
	// contains filtered or unexported fields
}

func New

func New() *Discoverer

func (*Discoverer) Explore

func (i *Discoverer) Explore(node ast.Node)

func (*Discoverer) ImportSpec

func (i *Discoverer) ImportSpec() []ast.Spec

func (*Discoverer) Visit

func (i *Discoverer) Visit(node ast.Node) (w ast.Visitor)

type Package

type Package struct {
	Path string
	Kind PkgKind
}

type PkgKind

type PkgKind int8
const (
	PkgKindSystem PkgKind = iota
	PkgKindExternal
	PkgKindInternal
)

type UsedPackage added in v0.0.3

type UsedPackage struct {
	Package Package
	Alias   string
}

Jump to

Keyboard shortcuts

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