utils

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxBodySize = 4 * sizes.M
)

Variables

This section is empty.

Functions

func MatchBytesCache

func MatchBytesCache(regex *re.Regexp, byteSlice []byte) bool

MatchBytesCache 正则表达式匹配字节slice,并缓存结果

func MatchStringCache

func MatchStringCache(regex *re.Regexp, s string) bool

MatchStringCache 正则表达式匹配字符串,并缓存结果

Types

This section is empty.

Jump to

Keyboard shortcuts

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