go-graphite / carbonapi

strings.Index used to cut a string GO-W1008
Anti-pattern
Minor
6 months agoa year old
strings.Index used to cut a string
 18		eqIdx := strings.Index(expr, "=")
 19		if eqIdx > 0 {
 20			tagName := expr[:eqIdx]
 21			neqIdx := strings.Index(expr, "!") 22			if neqIdx == -1 {
 23				irondbOp = "and"
 24			} else {