Versions in this module Expand all Collapse all v0 v0.3.0 Oct 24, 2018 Changes in this version + func NewDummyAliasReferer() *dummyAliasReferer + type AliasGetter interface + Alias func() string + type AliasReferer interface + RefByAlias func(string, bool) AliasGetter + RefByPath func(string, bool) AliasGetter + RefClosureRequire func(string) + type GenType int + const GenImplImports + const GenInterfaceImports + type PkgImport struct + func (pi *PkgImport) Alias() string + func (pi *PkgImport) Name() string + func (pi *PkgImport) Path() string + func (pi *PkgImport) PbPkg() string + func (pi *PkgImport) SetAlias(alias string) + func (pi *PkgImport) SetName(name string) + func (pi *PkgImport) SetPath(path string) + func (pi *PkgImport) SetPbPkg(pbPkg string) + type PkgManager struct + func New(tmplPkg, outputPkgPrefix string) *PkgManager + func (pm *PkgManager) AddImport(alias, pkgPath string, pbPkg string) *PkgImport + func (pm *PkgManager) CreatePkgRefs() *PkgRefs + func (pm *PkgManager) GetPkgsForAlias() map[string]*PkgImport + func (pm *PkgManager) ParseTmplCall(callStmt string) (pkgPath, relPkgPath, callName string) + func (pm *PkgManager) PkgByAlias(alias string) *PkgImport + func (pm *PkgManager) PkgByPath(pkgPath string) *PkgImport + type PkgRefs struct + func (pr *PkgRefs) DumpRequires(requires map[string]bool) + func (pr *PkgRefs) GenerateImports(output io.Writer, genType GenType) + func (pr *PkgRefs) GenerateRequires(output io.Writer) + func (pr *PkgRefs) ParseTmplCall(callStmt string) (pkgPath, relPkgPath, callName string) + func (pr *PkgRefs) RefByAlias(alias string, forInterface bool) AliasGetter + func (pr *PkgRefs) RefByPath(pkgPath string, forInterface bool) AliasGetter + func (pr *PkgRefs) RefClosureRequire(require string)