Documentation ¶
Index ¶
- func ComparePanelVersion(version1, version2 string) bool
- func CompareVersion(version1, version2 string) bool
- func ContainsChinese(text string) bool
- func CopyFile(src, dst string) error
- func FormatBytes(bytes uint64) string
- func FormatPercent(percent float64) string
- func GetSortedVersions(versions []string) []string
- func GetUuid() string
- func IsCrossVersion(version1, version2 string) bool
- func IsNum(s string) bool
- func IsValidDomain(domain string) bool
- func IsValidIP(ip string) bool
- func LoadSizeUnit(value float64) string
- func LoadSizeUnit2F(value float64) string
- func LoadTimeZoneByCmd() string
- func PunycodeEncode(text string) (string, error)
- func RandStr(n int) string
- func RandStrAndNum(n int) string
- func RemoveRepeatElement(a interface{}) (ret []interface{})
- func ScanPort(port int) bool
- func ScanPortWithProto(port int, proto string) bool
- func ScanUDPPort(port int) bool
- func SplitStr(str string, spi ...string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePanelVersion ¶
func CompareVersion ¶
func ContainsChinese ¶ added in v1.9.3
func FormatBytes ¶
func FormatPercent ¶
func GetSortedVersions ¶
func IsCrossVersion ¶
func IsValidDomain ¶ added in v1.8.0
func LoadSizeUnit ¶
func LoadSizeUnit2F ¶ added in v1.6.1
func LoadTimeZoneByCmd ¶ added in v1.3.0
func LoadTimeZoneByCmd() string
func PunycodeEncode ¶ added in v1.9.3
func RandStrAndNum ¶ added in v1.2.3
func RemoveRepeatElement ¶
func RemoveRepeatElement(a interface{}) (ret []interface{})
func ScanPortWithProto ¶ added in v1.6.0
func ScanUDPPort ¶ added in v1.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.