MCPcopy Create free account
hub / github.com/bytebase/bytebase / catchCaret

Function catchCaret

backend/plugin/parser/pg/completion_test.go:354–361  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

352}
353
354func catchCaret(s string) (string, int) {
355 for i, c := range s {
356 if c == '|' {
357 return s[:i] + s[i+1:], i
358 }
359 }
360 return s, -1
361}

Callers 2

TestCompletionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected