📜  golang string is digit - Go 编程语言 - Go 编程语言代码示例
📅  最后修改于: 2022-03-11 14:45:02.408000             🧑  作者: Mango
代码示例1
if _, err := strconv.Atoi(v); err == nil {
fmt.Printf("%q looks like a number.\n", v)
}