diff options
Diffstat (limited to 'crawler/utility.go')
| -rw-r--r-- | crawler/utility.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawler/utility.go b/crawler/utility.go index d282dbd..c619b34 100644 --- a/crawler/utility.go +++ b/crawler/utility.go @@ -1,6 +1,7 @@ package main import ( + "database/sql" "errors" "math" "math/rand" @@ -21,6 +22,15 @@ func stringInSlice(a string, list []string) bool { return false } +func stringInSQLSlice(a string, list []sql.NullString) bool { + for _, b := range list { + if b.String == a { + return true + } + } + return false +} + func detect_spirit_type(name string) string { name = strings.ToLower(name) |
