Documentation ¶
Index ¶
- Constants
- func Catch(pattern string, i interface{}) []string
- func CatchAll(pattern string, i interface{}) [][]string
- func FCatch(pattern string, filepath string) []string
- func FCatchAll(pattern string, filepath string) [][]string
- func FMatch(pattern string, filepath string) bool
- func FReplaceAll(pattern string, filepath string, repl string) string
- func FSplit(pattern string, filepath string) []string
- func Match(pattern string, i interface{}) bool
- func ReplaceAll(pattern string, i interface{}, repl string) string
- func Split(pattern string, i interface{}) []string
- type EasyRegexp
- func (er *EasyRegexp) Catch(i interface{}) []string
- func (er *EasyRegexp) CatchAll(i interface{}) [][]string
- func (er *EasyRegexp) FCatch(filepath string) []string
- func (er *EasyRegexp) FCatchAll(filepath string) [][]string
- func (er *EasyRegexp) FMatch(filepath string) bool
- func (er *EasyRegexp) FReplaceAll(filepath string, repl string) string
- func (er *EasyRegexp) FSplit(filepath string) []string
- func (er *EasyRegexp) Match(i interface{}) bool
- func (er *EasyRegexp) ReplaceAll(i interface{}, repl string) string
- func (er *EasyRegexp) Split(i interface{}) []string
Constants ¶
View Source
const MaxCompiledRegex = 1024
max number of cached *EasyRegexp
Variables ¶
This section is empty.
Functions ¶
func ReplaceAll ¶
Types ¶
type EasyRegexp ¶
type EasyRegexp struct {
// contains filtered or unexported fields
}
contain pattern string and count
func NewEasyRegexp ¶
func NewEasyRegexp(pattern string) *EasyRegexp
func (*EasyRegexp) Catch ¶
func (er *EasyRegexp) Catch(i interface{}) []string
func (*EasyRegexp) CatchAll ¶
func (er *EasyRegexp) CatchAll(i interface{}) [][]string
func (*EasyRegexp) FCatch ¶
func (er *EasyRegexp) FCatch(filepath string) []string
func (*EasyRegexp) FCatchAll ¶
func (er *EasyRegexp) FCatchAll(filepath string) [][]string
func (*EasyRegexp) FMatch ¶
func (er *EasyRegexp) FMatch(filepath string) bool
func (*EasyRegexp) FReplaceAll ¶
func (er *EasyRegexp) FReplaceAll(filepath string, repl string) string
func (*EasyRegexp) FSplit ¶
func (er *EasyRegexp) FSplit(filepath string) []string
func (*EasyRegexp) Match ¶
func (er *EasyRegexp) Match(i interface{}) bool
func (*EasyRegexp) ReplaceAll ¶
func (er *EasyRegexp) ReplaceAll(i interface{}, repl string) string
func (*EasyRegexp) Split ¶
func (er *EasyRegexp) Split(i interface{}) []string
Click to show internal directories.
Click to hide internal directories.