regexp

package
v1.36.4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APP struct {
	Regexp Regexp
}

Functions

This section is empty.

Types

type AttrTargetError

type AttrTargetError struct {
	// contains filtered or unexported fields
}

func TargetError

func TargetError(target error) AttrTargetError

func (AttrTargetError) Register

func (my AttrTargetError) Register(regexp *Regexp)

type AttrTargetString

type AttrTargetString struct {
	// contains filtered or unexported fields
}

func TargetString

func TargetString(target string) AttrTargetString

func (AttrTargetString) Register

func (my AttrTargetString) Register(regexp *Regexp)

type AttrTargetsError

type AttrTargetsError struct {
	// contains filtered or unexported fields
}

func TargetsError

func TargetsError(targets ...error) AttrTargetsError

func (AttrTargetsError) Register

func (my AttrTargetsError) Register(regexp *Regexp)

type AttrTargetsString

type AttrTargetsString struct {
	// contains filtered or unexported fields
}

func TargetsString

func TargetsString(targets ...string) AttrTargetsString

func (AttrTargetsString) Register

func (my AttrTargetsString) Register(regexp *Regexp)

type Attributer

type Attributer interface{ Register(regexp *Regexp) }

type Regexp

type Regexp struct {
	// contains filtered or unexported fields
}
var RegexpApp Regexp

func (Regexp) Contains

func (my Regexp) Contains() bool

Contains 是否包含匹配项

func (Regexp) ContainsAny added in v1.35.13

func (my Regexp) ContainsAny() bool

ContainsAny 是否包含任意一个匹配项

func (Regexp) MatchAll

func (my Regexp) MatchAll() []string

MatchAll 查找所有匹配项

func (Regexp) MatchFirst

func (my Regexp) MatchFirst() string

MatchFirst 查找第一个匹配项

func (Regexp) New

func (Regexp) New(original string, attrs ...Attributer) Regexp

func (Regexp) Set

func (my Regexp) Set(attrs ...Attributer) Regexp

Jump to

Keyboard shortcuts

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