Documentation ¶
Index ¶
- func ASCIIBytesToPrintString(b []byte) string
- func BothExists(a, b string) bool
- func BothNotExists(a, b string) bool
- func CtIsZero(b []byte) bool
- func EnsureAddrIPPort(a string) error
- func Exists(f string) bool
- func ExplicitBzero(b []byte)
- func GetExternalIPv4Address() (net.IP, error)
- func MkDataDir(f string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ASCIIBytesToPrintString ¶
ASCIIBytesToPrintString converts the buffer b to the closest ASCII string equivalent, substituting '*' for unprintable characters.
func BothExists ¶ added in v0.0.31
func BothNotExists ¶ added in v0.0.31
func CtIsZero ¶
CtIsZero returns true iff the buffer b is all 0x00, doing the check in constant time.
func EnsureAddrIPPort ¶
EnsureAddrIPPort returns nil iff the address is a raw IP + Port combination.
func ExplicitBzero ¶
func ExplicitBzero(b []byte)
ExplicitBzero explicitly clears out the buffer b, by filling it with 0x00 bytes.
func GetExternalIPv4Address ¶
GetExternalIPv4Address attempts to guess an external IPv4 address by interface enumeration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.