Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConditionalExpression ¶
type ConditionalExpression struct {
// contains filtered or unexported fields
}
ConditionalExpression is a model for a conditional expression applied on an article
func NewConditionalExpression ¶
func NewConditionalExpression(expression string) (*ConditionalExpression, error)
NewConditionalExpression creates a new conditional expression
func (*ConditionalExpression) Match ¶
func (c *ConditionalExpression) Match(article *model.Article) bool
Match test ifthe article match the conditional expression
func (*ConditionalExpression) String ¶
func (c *ConditionalExpression) String() string
String returns the string expression
Click to show internal directories.
Click to hide internal directories.