parsers/utils.go
2022-08-04 00:05:19 +02:00

12 lines
152 B
Go

package parsers
import "strconv"
func atoi(s string) (int, bool) {
v, err := strconv.Atoi(s)
if err != nil {
return 0, false
}
return v, true
}