Documentation ¶ Index ¶ func ModulePath(mod []byte) string type EntityMeta type Parser func (p *Parser) Parse(fileName string) error func (p *Parser) Visit(n ast.Node) (w ast.Visitor) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ModulePath ¶ func ModulePath(mod []byte) string ModulePath returns the module path from the gomod file text. If it cannot find a module path, it returns an empty string. It is tolerant of unrelated problems in the go.mod file. Types ¶ type EntityMeta ¶ type EntityMeta struct { Name string TableName string Indexes []entity.Index } type Parser ¶ type Parser struct { PkgPath string PkgName string Metas []EntityMeta } func (*Parser) Parse ¶ func (p *Parser) Parse(fileName string) error func (*Parser) Visit ¶ func (p *Parser) Visit(n ast.Node) (w ast.Visitor) Source Files ¶ View all Source files mod.go parser.go Click to show internal directories. Click to hide internal directories.