()
| 46 | } |
| 47 | |
| 48 | func ExampleDocument_CursorPositionCol() { |
| 49 | d := &Document{ |
| 50 | Text: `Hello! my name is c-bata. |
| 51 | This is a example of Document component. |
| 52 | This component has texts displayed in terminal and cursor position. |
| 53 | `, |
| 54 | cursorPosition: len(`Hello! my name is c-bata. |
| 55 | This is a exam`), |
| 56 | } |
| 57 | fmt.Println("CursorPositionCol", d.CursorPositionCol()) |
| 58 | // Output: |
| 59 | // CursorPositionCol 14 |
| 60 | } |
| 61 | |
| 62 | func ExampleDocument_TextBeforeCursor() { |
| 63 | d := &Document{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…