MCPcopy Index your code
hub / github.com/c-bata/go-prompt / ExampleDocument_GetWordAfterCursorUntilSeparator

Function ExampleDocument_GetWordAfterCursorUntilSeparator

document_test.go:192–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190}
191
192func ExampleDocument_GetWordAfterCursorUntilSeparator() {
193 d := &Document{
194 Text: `hello,i am c-bata,thank you for using go-prompt`,
195 cursorPosition: len(`hello,i a`),
196 }
197 fmt.Println(d.GetWordAfterCursorUntilSeparator(","))
198 // Output:
199 // m c-bata
200}
201
202func ExampleDocument_GetWordBeforeCursorUntilSeparatorIgnoreNextToCursor() {
203 d := &Document{

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…