MCPcopy
hub / github.com/uber/aresdb / GetSubstring

Function GetSubstring

query/sql/util/util.go:30–33  ·  view source on GitHub ↗

GetSubstring returns substring embeded in a node's value (substring)

(str string)

Source from the content-addressed store, hash-verified

28
29// GetSubstring returns substring embeded in a node's value (substring)
30func 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
36func TrimQuote(str string) string {

Callers 3

VisitSortItemMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected