Documentation ¶
Index ¶
- Constants
- func ByteToString(b []byte) string
- func DataMasking(data string) string
- func Duration(invocation time.Time, name string)
- func ExtractUUID(path string) string
- func GeneratePassword(length int, containChars string) string
- func GenerateUUID() (string, error)
- func GetAvailablePort() int
- func GetFDCount() uint64
- func GetLocalIP4() (ip string)
- func GetSocketCount() uint64
- func IsIPv4(host string) bool
- func IsUrl(text string) bool
- func Ping(host string) bool
- func Round(val float64, precision int) float64
- func StringSliceDiff(s1, s2 []string) []string
- func StringToByte(s string) (b []byte)
Constants ¶
View Source
const (
UrlRegex = `https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)`
)
Variables ¶
This section is empty.
Functions ¶
func ByteToString ¶
func GeneratePassword ¶
GeneratePassword containChars : "lowercase|uppercase|numbers|hyphen|underline|space|specials|brackets|no_similar"
func GenerateUUID ¶ added in v0.0.9
GenerateUUID generates a random ID for a message
func GetFDCount ¶ added in v0.0.16
func GetFDCount() uint64
func GetSocketCount ¶ added in v0.0.16
func GetSocketCount() uint64
func StringSliceDiff ¶ added in v0.0.8
func StringToByte ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.