()
| 114 | } |
| 115 | |
| 116 | func ExampleDocument_CurrentLineAfterCursor() { |
| 117 | d := &Document{ |
| 118 | Text: `Hello! my name is c-bata. |
| 119 | This is a example of Document component. |
| 120 | This component has texts displayed in terminal and cursor position. |
| 121 | `, |
| 122 | cursorPosition: len(`Hello! my name is c-bata. |
| 123 | This is a exam`), |
| 124 | } |
| 125 | fmt.Println(d.CurrentLineAfterCursor()) |
| 126 | // Output: |
| 127 | // ple of Document component. |
| 128 | } |
| 129 | |
| 130 | func ExampleDocument_GetWordBeforeCursor() { |
| 131 | d := &Document{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…