expr

package
v3.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL