importer

package
v1.26.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImportInfo

type ImportInfo struct {
	Name    string
	Differs bool
}

type Importer

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

func NewImporter

func NewImporter(pkg *packages.Package) *Importer

func (*Importer) HasImports

func (i *Importer) HasImports() bool

func (*Importer) Import

func (i *Importer) Import(name, path string) string

func (*Importer) Pkg

func (i *Importer) Pkg() *packages.Package

func (*Importer) QualifyPkg

func (i *Importer) QualifyPkg(pkg *stdtypes.Package) string

func (*Importer) RewritePkgRefs

func (i *Importer) RewritePkgRefs(node ast.Node) ast.Node

func (*Importer) SortedImports

func (i *Importer) SortedImports() (result []string)

Jump to

Keyboard shortcuts

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