Documentation
¶
Index ¶
- func MidPath(outputdir, rootDir string) (string, error)
- type ImportSpec
- type Imports
- func (i *Imports) AddModule(module string, modulePath, midPath string) (name string)
- func (i *Imports) AddPath(path string) (name string)
- func (i *Imports) AddSpec(spec ImportSpec) (name string)
- func (i *Imports) ByName(name string) (spec ImportSpec, ok bool)
- func (i *Imports) ByPath(path string) (spec ImportSpec, ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImportSpec ¶
func (ImportSpec) String ¶
func (spec ImportSpec) String() string
type Imports ¶
type Imports struct { Specs []ImportSpec Used map[string]bool // keyed on import path // contains filtered or unexported fields }
func NewImports ¶
func NewImports( reserved []ImportSpec, bundleMap []loader.BundleMap, ) Imports
func (*Imports) AddSpec ¶
func (i *Imports) AddSpec(spec ImportSpec) (name string)
Click to show internal directories.
Click to hide internal directories.