GetSubstring returns substring embeded in a node's value (substring)
(str string)
| 28 | |
| 29 | // GetSubstring returns substring embeded in a node's value (substring) |
| 30 | func GetSubstring(str string) string { |
| 31 | front := strings.Index(str, "(") |
| 32 | return str[front+1 : len(str)-1] |
| 33 | } |
| 34 | |
| 35 | // TrimQuote remove leading and tail quote |
| 36 | func TrimQuote(str string) string { |
no outgoing calls
no test coverage detected