mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-26 08:39:17 +08:00
3463804a7c
Fixes #238
8 lines
188 B
Go
8 lines
188 B
Go
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
|
|
}
|