()
| 24 | } |
| 25 | |
| 26 | func ExampleShort() { |
| 27 | data := [][]string{ |
| 28 | {"A", "16"}, |
| 29 | {"B", "17"}, |
| 30 | {"C", "18"}, |
| 31 | } |
| 32 | table := New() |
| 33 | resetOSWriter(table) |
| 34 | table.SetHeader([]string{"Name", "Age"}) |
| 35 | table.AppendBulk(data) |
| 36 | table.Render() |
| 37 | |
| 38 | // Output: |
| 39 | // Name Age |
| 40 | // A 16 |
| 41 | // B 17 |
| 42 | // C 18 |
| 43 | } |
| 44 | |
| 45 | func ExampleChinese() { |
| 46 | data := [][]string{ |
nothing calls this directly
no test coverage detected