Commit 5b9a1ba0 authored by hujiebin's avatar hujiebin

Update utils.go

parent 1dfb0307
......@@ -82,4 +82,13 @@ func StrToString(str *mysql.Str) *string {
func NumToUint32(num *mysql.Num) *uint32 {
return (*uint32)(num)
}
\ No newline at end of file
}
func IsInStringList(str string, list []string) bool {
for _, v := range list {
if str == v {
return true
}
}
return false
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment