utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxBodySize = 2 * 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