Documentation ¶
Index ¶
- Variables
- func ARangeU32(n uint32) []uint32
- func AddrToDnsType(addr netip.Addr) uint16
- func Base64StdDecode(s string) (string, error)
- func Base64UrlDecode(s string) (string, error)
- func BoolToString(b bool) string
- func CloneStrings(slice []string) []string
- func ConvergeAddr(addr netip.Addr) netip.Addr
- func ConvergeAddrPort(addrPort netip.AddrPort) netip.AddrPort
- func Deduplicate(list []string) []string
- func EnsureFileInSubDir(filePath string, dir string) (err error)
- func FuzzyDecode(to interface{}, val string) bool
- func GenerateCertChainHash(rawCerts [][]byte) (chainHash []byte)
- func GetDefaultIfnames() (defaultIfs []string, err error)
- func GetTagFromLinkLikePlaintext(link string) (tag string, afterTag string)
- func GetValueHierarchicalStruct(m interface{}, key string) (reflect.Value, error)
- func Htons(i uint16) uint16
- func Ipv6ByteSliceToUint32Array(_ip []byte) (ip [4]uint32)
- func Ipv6ByteSliceToUint8Array(_ip []byte) (ip [16]uint8)
- func Ipv6Uint32ArrayToByteSlice(_ip [4]uint32) (ip []byte)
- func IsValidHttpMethod(method string) bool
- func MagicNetwork(network string, mark uint32, mptcp bool) string
- func MapKeys(m interface{}) (keys []string, err error)
- func NewGcm(key []byte) (cipher.AEAD, error)
- func Ntohs(i uint16) uint16
- func ParseMac(mac string) (addr [6]byte, err error)
- func ParsePortRange(pr string) (portRange [2]uint16, err error)
- func ReportMemory(tag string)
- func SetValue(values *url.Values, key string, value string)
- func SetValueHierarchicalMap(m map[string]interface{}, key string, val interface{}) error
- func SetValueHierarchicalStruct(m interface{}, key string, val string) error
- func StringSet(list []string) map[string]struct{}
- type UrlOrEmpty
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrOverlayHierarchicalKey = fmt.Errorf("overlay hierarchical key")
)
Functions ¶
func AddrToDnsType ¶
func Base64StdDecode ¶
func Base64UrlDecode ¶
func BoolToString ¶
func CloneStrings ¶
func Deduplicate ¶
func EnsureFileInSubDir ¶
func FuzzyDecode ¶
func GenerateCertChainHash ¶ added in v0.2.4
func GetDefaultIfnames ¶ added in v0.1.3
func Htons ¶
Htons converts the unsigned short integer hostshort from host byte order to network byte order.
func IsValidHttpMethod ¶ added in v0.1.10
func MagicNetwork ¶ added in v0.2.0
func Ntohs ¶
Ntohs converts the unsigned short integer hostshort from host byte order to network byte order.
func ParsePortRange ¶
func ReportMemory ¶
func ReportMemory(tag string)
func SetValueHierarchicalMap ¶
Types ¶
type UrlOrEmpty ¶
Click to show internal directories.
Click to hide internal directories.