()
| 8 | ) |
| 9 | |
| 10 | func ExampleDocument_CurrentLine() { |
| 11 | d := &Document{ |
| 12 | Text: `Hello! my name is c-bata. |
| 13 | This is a example of Document component. |
| 14 | This component has texts displayed in terminal and cursor position. |
| 15 | `, |
| 16 | cursorPosition: len(`Hello! my name is c-bata. |
| 17 | This is a exam`), |
| 18 | } |
| 19 | fmt.Println(d.CurrentLine()) |
| 20 | // Output: |
| 21 | // This is a example of Document component. |
| 22 | } |
| 23 | |
| 24 | func ExampleDocument_DisplayCursorPosition() { |
| 25 | d := &Document{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…