exists.go 157 B

1234567
  1. package mxj
  2. // Checks whether the path exists
  3. func (mv Map) Exists(path string) bool {
  4. v, err := mv.ValuesForPath(path)
  5. return err == nil && len(v) > 0
  6. }