mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-26 17:19:17 +08:00
+7
@@ -0,0 +1,7 @@
|
||||
package mxj
|
||||
|
||||
// Checks whether the path exists
|
||||
func (mv Map) Exists(path string, subkeys ...string) bool {
|
||||
v, err := mv.ValuesForPath(path, subkeys...)
|
||||
return err == nil && len(v) > 0
|
||||
}
|
||||
Reference in New Issue
Block a user