Documentation ¶
Index ¶
- func TagNames(expression Expression) []string
- func Type(token Token) string
- type AndExpression
- type AndOperatorToken
- type CloseParenToken
- type EndToken
- type Expression
- type NotExpression
- type NotOperatorToken
- type OpenParenToken
- type OrExpression
- type OrOperatorToken
- type Parser
- type Scanner
- type TagExpression
- type TagToken
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TagNames ¶
func TagNames(expression Expression) []string
Types ¶
type AndExpression ¶
type AndExpression struct { LeftOperand Expression RightOperand Expression }
type AndOperatorToken ¶
type AndOperatorToken struct { }
type CloseParenToken ¶
type CloseParenToken struct { }
type Expression ¶
type Expression interface { }
func Parse ¶
func Parse(query string) (Expression, error)
type NotExpression ¶
type NotExpression struct {
Operand Expression
}
type NotOperatorToken ¶
type NotOperatorToken struct { }
type OpenParenToken ¶
type OpenParenToken struct { }
type OrExpression ¶
type OrExpression struct { LeftOperand Expression RightOperand Expression }
type OrOperatorToken ¶
type OrOperatorToken struct { }
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (Parser) Parse ¶
func (parser Parser) Parse() (Expression, error)
type TagExpression ¶
type TagExpression struct {
Name string
}
Click to show internal directories.
Click to hide internal directories.