Documentation ¶
Index ¶
- func EnableAllCPU()
- func GbkToUtf8(str string) string
- func GetIPsFromCIDR(cidr string) ([]string, error)
- func GetPercentage(v, m, a int) float64
- func GetPercentageString(v, m, a int, s bool) string
- func GetRandomInt(min, max int) int
- func GetRandomIntN(n int) int
- func GetRandomString(l int) string
- func NewLine() string
- func StringIndexOf(src, sub string, i int) int
- func TestTCPConnect(ip string, port, timeout, count int) (min, max, avg, out int)
- func TestUDPConnect(ip string, port, timeout, count int) (min, max, avg, out int)
- func UnixTimeByMilliseconds(ms int64) time.Time
- func UnixTimeBySeconds(s int64) time.Time
- func Utf8ToGbk(str string) string
- type Queue
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableAllCPU ¶
func EnableAllCPU()
func GetIPsFromCIDR ¶
func GetPercentage ¶
func GetPercentageString ¶
func GetRandomInt ¶
func GetRandomIntN ¶
func GetRandomString ¶
func StringIndexOf ¶
func TestTCPConnect ¶
func TestUDPConnect ¶
func UnixTimeByMilliseconds ¶
func UnixTimeBySeconds ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.