MCPcopy
hub / github.com/c-bata/go-prompt / ExampleDocument_TextAfterCursor

Function ExampleDocument_TextAfterCursor

document_test.go:77–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77func ExampleDocument_TextAfterCursor() {
78 d := &Document{
79 Text: `Hello! my name is c-bata.
80This is a example of Document component.
81This component has texts displayed in terminal and cursor position.
82`,
83 cursorPosition: len(`Hello! my name is c-bata.
84This is a exam`),
85 }
86 fmt.Println(d.TextAfterCursor())
87 // Output:
88 // ple of Document component.
89 // This component has texts displayed in terminal and cursor position.
90}
91
92func ExampleDocument_DisplayCursorPosition_withJapanese() {
93 d := &Document{

Callers

nothing calls this directly

Calls 1

TextAfterCursorMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…