Documentation ¶
Overview ¶
Package libstring provides various string related functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalizeIP ¶
CanonicalizeIP returns a form of ip suitable for comparison to other IPs. For IPv4 addresses, this is simply the whole string. For IPv6 addresses, this is the /64 prefix.
func RemoteIPFromIPLookup ¶
RemoteIPFromIPLookup picks an ip address explicitly from limiter.IPLookup criteria. This function is intended to replace RemoteIP function.
func StringInSlice ¶
StringInSlice finds needle in a slice of strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.