Documentation ¶
Index ¶
- func CalcTime(start time.Time, end time.Time) int64
- func CalcTimeNow(end time.Time) int64
- func CookiesToString(cookie []*http.Cookie) (res string)
- func GetCookiesNames(cookie []*http.Cookie) (res []string)
- func GetHeadersNames(header http.Header) (res []string)
- func HeadersToString(header http.Header) (res string)
- func IsDigit(X byte) bool
- func IsMatch(pattern string, str string) (bool, error)
- func IsODidit(X byte) bool
- func IsSpace(X byte) bool
- func PreProcessString(value string) string
- func StringContains(slice []string, item string) bool
- func UnEscapeRawValue(rawQuery string) string
- func ValidHex(X byte) bool
- func X2c(c1 byte, c2 byte) byte
- func XSingle2c(c byte) byte
- type Matcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCookiesNames ¶
GetCookiesNames ...
func GetHeadersNames ¶
GetHeadersNames Gets the header name
func IsSpace ¶
IsSpace checks for white-space characters. In the "C" and "POSIX" locales, these are: space, form-feed ('\f'), newline ('\n'), carriage return ('\r'), horizontal tab ('\t'), and vertical tab ('\v').
func StringContains ¶
StringContains searches given string in a string slice
func UnEscapeRawValue ¶
UnEscapeRawValue unescapes raw query
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher is returned by NewMatcher and contains a list of blices to match against
func NewMatcher ¶
NewMatcher creates a new Matcher used to match against a set of blices
func NewStringMatcher ¶
NewStringMatcher creates a new Matcher used to match against a set of strings (this is a helper to make initialization easy)
Click to show internal directories.
Click to hide internal directories.