()
| 75 | } |
| 76 | |
| 77 | func ExampleDocument_TextAfterCursor() { |
| 78 | d := &Document{ |
| 79 | Text: `Hello! my name is c-bata. |
| 80 | This is a example of Document component. |
| 81 | This component has texts displayed in terminal and cursor position. |
| 82 | `, |
| 83 | cursorPosition: len(`Hello! my name is c-bata. |
| 84 | This 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 | |
| 92 | func ExampleDocument_DisplayCursorPosition_withJapanese() { |
| 93 | d := &Document{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…