Documentation ¶
Index ¶
- type Parser
- func (p *Parser) Parse(scnr scanner.Scanner, result *pkg.Package) (err error)
- func (p *Parser) ParseBoolean() (result string, err error)
- func (p *Parser) ParseBracket() (err error)
- func (p *Parser) ParseBranch() (result string, err error)
- func (p *Parser) ParseClass() (err error)
- func (p *Parser) ParseClassName() (err error)
- func (p *Parser) ParseCommit() (result string, err error)
- func (p *Parser) ParseDependency() (result string, err error)
- func (p *Parser) ParseExpand() (result string, err error)
- func (p *Parser) ParseExtension() (result string, err error)
- func (p *Parser) ParseFunction() (result string, err error)
- func (p *Parser) ParseGitURL() (result string, err error)
- func (p *Parser) ParseHomepage() (result string, err error)
- func (p *Parser) ParseList() (result []string, err error)
- func (p *Parser) ParseMaintainers() (result []string, err error)
- func (p *Parser) ParseString() (result string, err error)
- func (p *Parser) ParseSubmodule() (result string, err error)
- func (p *Parser) ParseTag() (result string, err error)
- func (p *Parser) ParseURL() (result string, err error)
- func (p *Parser) ParseVersion() (result pkg.Version, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is the collection responsible for decoding an input string into a package struct.
func (*Parser) ParseBoolean ¶ added in v0.1.4
ParseBoolean parses and returns the value of a boolean.
func (*Parser) ParseBracket ¶ added in v0.1.8
ParseBracket parses and returns the full contents of a string.
func (*Parser) ParseBranch ¶ added in v0.1.4
ParseBranch returns the value of the branch variable.
func (*Parser) ParseClass ¶
ParseClass handles the specific parsing of a package class.
func (*Parser) ParseClassName ¶
ParseClassName take care of parsing the name of a package.
func (*Parser) ParseCommit ¶ added in v0.2.2
ParseExpand returns the value of the expand variable.
func (*Parser) ParseDependency ¶ added in v0.2.0
ParseDependency returns a list of strings of dependency packages.
func (*Parser) ParseExpand ¶ added in v0.1.5
ParseExpand returns the value of the expand variable.
func (*Parser) ParseExtension ¶ added in v0.2.9
ParseExtension returns the value of the branch variable.
func (*Parser) ParseFunction ¶
ParseFunction returns a string of the build instruction function.
func (*Parser) ParseGitURL ¶ added in v0.1.5
ParseGitURL returns the value of the url variable.
func (*Parser) ParseHomepage ¶
ParseHomepage returns the value of the homepage variable.
func (*Parser) ParseList ¶ added in v0.2.6
ParseList parses and returns the full contents of a string.
func (*Parser) ParseMaintainers ¶ added in v0.2.6
ParseMaintainers returns the value of the homepage variable.
func (*Parser) ParseString ¶
ParseString parses and returns the full contents of a string.
func (*Parser) ParseSubmodule ¶ added in v0.1.4
ParseSubmodule returns the value of the branch variable.