mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 13:18:14 -05:00
10 lines
189 B
Go
10 lines
189 B
Go
package util
|
|
|
|
// MapContainsKey is fairly self explanatory
|
|
func MapContainsKey(dict map[string]interface{}, key string) bool {
|
|
if _, ok := dict[key]; ok {
|
|
return true
|
|
}
|
|
return false
|
|
}
|