Documentation ¶
Index ¶
- Variables
- func AllEquals(v ...interface{}) bool
- func ByteToString(a []byte) string
- func CheckError(err error)
- func CheckTestError(t *testing.T, err error)
- func CleanForLog(s string) string
- func CleanIP(s string) (string, error)
- func CleanMac(mac string) string
- func ConvertToByte(b string) []byte
- func ConvertToString(b []byte) string
- func CopyHttpRequest(req *http.Request) (*http.Request, error)
- func CopyMap(m map[interface{}]interface{}) map[interface{}]interface{}
- func CopyOrderedMap(m *ordered_map.OrderedMap) *ordered_map.OrderedMap
- func Dec(ip net.IP)
- func EnvOrDefault(name string, defaultVal string) string
- func EnvOrDefaultDuration(name string, defaultVal time.Duration) time.Duration
- func EnvOrDefaultInt(name string, defaultVal int) int
- func IP2Int(ip net.IP) uint32
- func Inc(ip net.IP)
- func Int2IP(nn uint32) net.IP
- func IsEnabled(enabled string) bool
- func IsIPv4(address net.IP) bool
- func IsIPv6(address net.IP) bool
- func LcFirst(str string) string
- func Ping(srcIP net.IP, dstIP net.IP, ifname string, timeout int) bool
- func Pinger(address string, timeout int) error
- func PingerRaw(srcIP net.IP, dstIP net.IP, ifname string, timeout int) error
- func Pingraw(srcIP net.IP, dstIP net.IP, ifname string) net.PacketConn
- func RandomBytes(length uint64) []byte
- func ReadFromFileOrStr(val string) string
- func RemoveDuplicates(elements []string) []string
- func SprintDump(args ...interface{}) string
- func TupleToMap(args []interface{}) (map[interface{}]interface{}, error)
- func TupleToOrderedMap(args []interface{}) (*ordered_map.OrderedMap, error)
- func UcFirst(str string) string
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ByteToString ¶
ByteToString return a human readeable string of the byte
func CheckError ¶
func CheckError(err error)
func CheckTestError ¶
func CleanForLog ¶
func CopyOrderedMap ¶
func CopyOrderedMap(m *ordered_map.OrderedMap) *ordered_map.OrderedMap
func EnvOrDefault ¶
func EnvOrDefaultDuration ¶
func EnvOrDefaultInt ¶
func RandomBytes ¶
func ReadFromFileOrStr ¶
func RemoveDuplicates ¶
RemoveDuplicates function remove duplicates elements in an array
func SprintDump ¶
func SprintDump(args ...interface{}) string
func TupleToMap ¶
func TupleToMap(args []interface{}) (map[interface{}]interface{}, error)
TODO: handle odd number of elements in args
func TupleToOrderedMap ¶
func TupleToOrderedMap(args []interface{}) (*ordered_map.OrderedMap, error)
TODO: handle odd number of elements in args
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.