12 lines
152 B
Go
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
|
||
|
}
|