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