Documentation ¶
Index ¶
- type ImportInfo
- type Importer
- func (i *Importer) HasImports() bool
- func (i *Importer) Import(name, path string) string
- func (i *Importer) Pkg() *packages.Package
- func (i *Importer) QualifyPkg(pkg *stdtypes.Package) string
- func (i *Importer) RewritePkgRefs(node ast.Node) ast.Node
- func (i *Importer) SortedImports() (result []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImportInfo ¶
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
func NewImporter ¶
func (*Importer) HasImports ¶
func (*Importer) SortedImports ¶
Click to show internal directories.
Click to hide internal directories.