Versions in this module Expand all Collapse all v0 v0.3.0 Oct 7, 2021 v0.2.0 Oct 7, 2021 Changes in this version + var ErrIgnore = errors.New("ignore empty exported package") + var ErrInvalidPkgPath = errors.New("invalid package path") + func Export(pkgPath string, w io.Writer) (err error) + func ExportPackage(pkg *types.Package, w io.Writer) (err error) + func IgoRoot() (root string, err error) + func Import(pkgPath string) (*types.Package, error) + func ImportSource(pkgPath string, srcDir string) (*types.Package, error) + func LookupMod(pkgPath string) (srcDir string, err error) + func ParsePkgVer(pkgPath string) (pkg string, mod string, sub string) + type Exporter struct + func NewExporter(w io.Writer, pkg *types.Package) *Exporter + func (p *Exporter) Close() error + func (p *Exporter) ExportConst(typ *types.Const) error + func (p *Exporter) ExportFunc(fn *types.Func) error + func (p *Exporter) ExportType(typ *types.TypeName) + func (p *Exporter) ExportVar(typ *types.Var) + func (p *Exporter) IsEmpty() bool