Versions in this module Expand all Collapse all v3 v3.1.0 Jan 20, 2020 v3.0.0 Jul 14, 2019 Changes in this version + var ErrParserUnknownDecl = errors.New("definition files can only contain package, import, var and func declarations") + var ErrParserVarDecl = errors.New("var declaration contains an error") + type DICopier struct + Box packr.Box + Output string + func NewDICopier(loc *Locator, subdir string, box packr.Box) *DICopier + func (c *DICopier) Copy() error + type DeclarationList struct + func NewDeclarationList() *DeclarationList + func (dl *DeclarationList) Add(name string) error + func (dl *DeclarationList) Merge(declList *DeclarationList) error + func (dl *DeclarationList) String(prefix, sep string) string + type DefinitionCopier struct + Locator *Locator + SubDir string + func NewDefinitionCopier(loc *Locator, subDir string) *DefinitionCopier + func (cop *DefinitionCopier) Copy() error + type Generator struct + Box packr.Box + Declarations *DeclarationList + Locator *Locator + func NewGenerator(loc *Locator, box packr.Box, decls *DeclarationList) *Generator + func (gen *Generator) Run() error + type Locator struct + func NewLocator(src, dest, destPkg string) (*Locator, error) + func (l *Locator) DestDir() string + func (l *Locator) DestPkg() string + func (l *Locator) Init(src, dest, destPkg string) error + func (l *Locator) SourceDir() string + func (l *Locator) SourceDirName() string + func (l *Locator) SourceFiles() []string + type Parser struct + Locator *Locator + func NewParser(loc *Locator) *Parser + func (p *Parser) Parse() (*DeclarationList, error) Other modules containing this package github.com/sarulabs/dingo