Documentation ¶
Index ¶
- Variables
- func AnyToFloat32(value any) (float32, error)
- func AnyToFloat64(value any) (float64, error)
- func AnyToInt(value any) (int, error)
- func AnyToInt64(value any) (int64, error)
- func AnyToString(value any) (string, error)
- func AnyToUInt(value any) (uint, error)
- func AnyToUInt32(value any) (uint32, error)
- func AnyToUInt64(value any) (uint64, error)
- func Decrypt(encryptedHex string, key []byte) (string, error)
- func Encrypt(plaintext string, key []byte) (string, error)
- func GetVarName(v any) string
- func IsValidIP(ipAddr string) bool
- func IsValidPort(port string) (int, error)
- func IsValidURL(u string) bool
- func Ping(ipAddr string, timeout time.Duration) bool
- func RemoveItemsContainingSubstring(arr []string, substr string) []string
- func RemoveItemsNotContainingSubstring(arr []string, substr string) []string
- func RemoveMultiSpaces(input string) string
- func RemoveTextWithinParens(input string) string
- func Telnet(ip string, port int, timeout time.Duration) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ExecPath string LocalDir string )
Functions ¶
func RemoveItemsContainingSubstring ¶
RemoveItemsContainingSubstring 从字符串数组里移除包含substr字符串的项并移除连续空格字符
func RemoveItemsNotContainingSubstring ¶
RemoveItemsNotContainingSubstring 从字符串数组里移除不包含substr字符串的项并移除连续空格字符
func RemoveMultiSpaces ¶
RemoveMultiSpaces 从字符串中移除多个连续空格字符
func RemoveTextWithinParens ¶
RemoveTextWithinParens 从字符串中删除括号内的文本。
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.