()
| 190 | } |
| 191 | |
| 192 | func 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 | |
| 202 | func ExampleDocument_GetWordBeforeCursorUntilSeparatorIgnoreNextToCursor() { |
| 203 | d := &Document{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…