()
| 43 | } |
| 44 | |
| 45 | func (p *OpPath) getParentPath() string { |
| 46 | path := string(*p) |
| 47 | if endsWithBracketExp.MatchString(path) { |
| 48 | return endsWithBracketExp.ReplaceAllString(path, "") |
| 49 | } |
| 50 | |
| 51 | tokens := strings.Split(path, ".") |
| 52 | return strings.Join(tokens[0:len(tokens)-1], ".") |
| 53 | } |
no outgoing calls