new helper for adding tickets
This commit is contained in:
14
helpers/parse.go
Normal file
14
helpers/parse.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package helpers
|
||||
|
||||
import "strconv"
|
||||
|
||||
func ParseIntSlice(input []string) []int {
|
||||
var out []int
|
||||
for _, s := range input {
|
||||
n, err := strconv.Atoi(s)
|
||||
if err == nil {
|
||||
out = append(out, n)
|
||||
}
|
||||
}
|
||||
return out
|
||||
}
|
||||
Reference in New Issue
Block a user