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 DetectTcpPort(ip string, port int, timeout time.Duration) bool
- 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 PrintNowTime()
- func RemoveItemsContainingSubstring(arr []string, substr string) []string
- func RemoveItemsNotContainingSubstring(arr []string, substr string) []string
- func RemoveMultiSpaces(input string) string
- func RemoveTextWithinParens(input string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ExecPath string LocalDir string )
Functions ¶
func AnyToFloat32 ¶ added in v0.1.1
AnyToFloat32 任意基础类型转为float32类型
func AnyToFloat64 ¶ added in v0.1.1
AnyToFloat64 任意基础类型转为float64类型
func AnyToInt64 ¶ added in v0.1.1
AnyToInt64 任意基础类型转为int64类型
func AnyToString ¶ added in v0.1.1
AnyToString 任意基础类型转为string类型
func AnyToUInt32 ¶ added in v0.1.1
AnyToUInt32 任意基础类型转为uint32类型
func AnyToUInt64 ¶ added in v0.1.1
AnyToUInt64 任意基础类型转为uint64类型
func DetectTcpPort ¶ added in v0.1.3
DetectTcpPort 检测Tcp端口是否开通
func PrintNowTime ¶
func PrintNowTime()
func RemoveItemsContainingSubstring ¶ added in v0.1.1
RemoveItemsContainingSubstring 从字符串数组里移除包含substr字符串的项并移除连续空格字符
func RemoveItemsNotContainingSubstring ¶ added in v0.1.1
RemoveItemsNotContainingSubstring 从字符串数组里移除不包含substr字符串的项并移除连续空格字符
func RemoveMultiSpaces ¶ added in v0.1.1
RemoveMultiSpaces 从字符串中移除多个连续空格字符
func RemoveTextWithinParens ¶ added in v0.1.1
RemoveTextWithinParens 从字符串中删除括号内的文本。
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.