MCPcopy
hub / github.com/Jrohy/trojan / IsInteger

Function IsInteger

util/string.go:41–44  ·  view source on GitHub ↗

IsInteger 判断字符串是否为整数

(input string)

Source from the content-addressed store, hash-verified

39
40// IsInteger 判断字符串是否为整数
41func IsInteger(input string) bool {
42 _, err := strconv.Atoi(input)
43 return err == nil
44}
45
46// RandString 随机字符串
47func RandString(length int, source string) string {

Callers 3

SetupExpireFunction · 0.92
LogFunction · 0.92
LoopInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected