Documentation ¶
Index ¶
- type Scanner
- type Token
- func (t *Token) IsBoolean() bool
- func (t *Token) IsBracket() bool
- func (t *Token) IsBranch() bool
- func (t *Token) IsChecksum() bool
- func (t *Token) IsClass() bool
- func (t *Token) IsComment() bool
- func (t *Token) IsCommit() bool
- func (t *Token) IsDependency() bool
- func (t *Token) IsExpand() bool
- func (t *Token) IsExtension() bool
- func (t *Token) IsFunction() bool
- func (t *Token) IsGitURL() bool
- func (t *Token) IsHomepage() bool
- func (t *Token) IsList() bool
- func (t *Token) IsMaintainers() bool
- func (t *Token) IsString() bool
- func (t *Token) IsSubmodule() bool
- func (t *Token) IsTag() bool
- func (t *Token) IsURL() bool
- func (t *Token) IsVersion() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner is a structure containing the information of where the scanner cursor is located and the input text for the scanner.
func (*Scanner) GetIndentLevel ¶
GetIndentLevel returns the level of indentation for a line.
type Token ¶
type Token struct {
Data string
}
Token is the structure containing a scanned token.
func (*Token) IsBracket ¶ added in v0.1.8
IsBracket returns if the current token begins a bracketed set
func (*Token) IsBranch ¶ added in v0.1.4
IsBranch returns if the current token defines a branch keyword.
func (*Token) IsChecksum ¶ added in v0.1.4
IsChecksum returns uf the current token begins with a valid checksum header.
func (*Token) IsCommit ¶ added in v0.2.2
IsCommit returns if the current token is an commit keyword.
func (*Token) IsDependency ¶
IsDependency returns if the current token begins with a valid version header.
func (*Token) IsExpand ¶ added in v0.1.5
IsExpand returns if the current token is an expand keyword.
func (*Token) IsExtension ¶ added in v0.2.9
IsExtension returns if the current token is an extension keyword.
func (*Token) IsFunction ¶
IsFunction returns if the current token begins a function.
func (*Token) IsGitURL ¶ added in v0.1.5
IsGitURL returns if the current token begins with a valid GitURL header.
func (*Token) IsHomepage ¶
IsHomepage returns if the current token begins with a homepage variable declaration.
func (*Token) IsMaintainers ¶ added in v0.2.6
IsMaintainers returns if the current token is an maintainers keyword.
func (*Token) IsSubmodule ¶ added in v0.1.4
IsSubmodule returns if the current token is a submodule keyword.