mirror of
https://github.com/weloe/token-go.git
synced 2025-10-05 07:26:50 +08:00
feat: add simple auth api
This commit is contained in:
@@ -8,3 +8,12 @@ func HasNil(arr []interface{}) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func HasStr(arr []string, str string) bool {
|
||||
for _, s := range arr {
|
||||
if s == str {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user