Documentation ¶
Overview ¶
Package expr implements text matching.
Index ¶
- type Expr
- func NewSimpleExpr(pattern string) Expr
- func NewSimpleExprFirst(pattern string, first int) Expr
- func NewSimpleExprFirst200(pattern string) Expr
- func NewSimpleExprFromRegexFirst(pattern *regexp.Regexp, first int) Expr
- func NewSimpleExprFromRegexFirst200(pattern *regexp.Regexp) Expr
- func NewSimpleExprFromRegexLast(pattern *regexp.Regexp, last int) Expr
- func NewSimpleExprFromRegexLast20(pattern *regexp.Regexp) Expr
- func NewSimpleExprFromRegexLast200(pattern *regexp.Regexp) Expr
- func NewSimpleExprLast(pattern string, last int) Expr
- func NewSimpleExprLast20(pattern string) Expr
- func NewSimpleExprLast200(pattern string) Expr
- func NewSimpleExprListStr(patterns []string) Expr
- type ExprList
- type MatchRes
- type NamedExpr
- type SimpleExprList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expr ¶
func NewSimpleExpr ¶
func NewSimpleExprFirst ¶
func NewSimpleExprFirst200 ¶
func NewSimpleExprFromRegexFirst ¶ added in v1.0.22
func NewSimpleExprFromRegexFirst200 ¶ added in v1.0.22
func NewSimpleExprFromRegexLast ¶ added in v1.0.22
func NewSimpleExprFromRegexLast20 ¶ added in v1.0.22
func NewSimpleExprFromRegexLast200 ¶ added in v1.0.22
func NewSimpleExprLast ¶
func NewSimpleExprLast20 ¶
func NewSimpleExprLast200 ¶
func NewSimpleExprListStr ¶
type ExprList ¶
type ExprList interface { Expr Add(name string, expr Expr) GetName(no int) string Delete(name string) }
func NewSimpleExprList ¶
func NewSimpleExprListNamed ¶
type SimpleExprList ¶
type SimpleExprList struct {
// contains filtered or unexported fields
}
func (*SimpleExprList) Add ¶
func (m *SimpleExprList) Add(name string, expr Expr)
func (*SimpleExprList) Delete ¶
func (m *SimpleExprList) Delete(name string)
func (*SimpleExprList) GetName ¶
func (m *SimpleExprList) GetName(index int) string
func (SimpleExprList) Repr ¶
func (m SimpleExprList) Repr() string
func (SimpleExprList) String ¶
func (m SimpleExprList) String() string
Click to show internal directories.
Click to hide internal directories.