|
28 | 28 | #### Latest Version
|
29 | 29 | The latest stable version
|
30 | 30 | ```bash
|
31 |
| -go get github.com/olekukonko/ [email protected]. 1 |
| 31 | +go get github.com/olekukonko/ [email protected]. 3 |
32 | 32 | ```
|
33 | 33 |
|
34 | 34 | **Warning:** Version `v1.0.0` contains missing functionality and should not be used.
|
@@ -77,7 +77,7 @@ func main() {
|
77 | 77 | β PACKAGE β VERSION β STATUS β
|
78 | 78 | βββββββββββββββΌββββββββββΌβββββββββ€
|
79 | 79 | β tablewriter β v0.0.5 β legacy β
|
80 |
| -β tablewriter β v1.0.0 β latest β |
| 80 | +β tablewriter β v1.0.3 β latest β |
81 | 81 | βββββββββββββββ΄ββββββββββ΄βββββββββ
|
82 | 82 | ```
|
83 | 83 |
|
@@ -164,34 +164,33 @@ func main() {
|
164 | 164 | {"Bob", Age(30), "Boston"},
|
165 | 165 | }
|
166 | 166 |
|
167 |
| - symbols := tw.NewSymbolCustom("Hearts"). |
168 |
| - WithRow("β₯"). |
169 |
| - WithColumn("β€"). |
170 |
| - WithTopLeft("β₯"). |
171 |
| - WithTopMid("β‘"). |
172 |
| - WithTopRight("β₯"). |
173 |
| - WithMidLeft("β£"). |
174 |
| - WithCenter("β"). |
175 |
| - WithMidRight("β£"). |
176 |
| - WithBottomLeft("β¦"). |
177 |
| - WithBottomMid("β‘"). |
178 |
| - WithBottomRight("β¦") |
| 167 | + symbols := tw.NewSymbolCustom("Nature"). |
| 168 | + WithRow("~"). |
| 169 | + WithColumn("|"). |
| 170 | + WithTopLeft("π±"). |
| 171 | + WithTopMid("πΏ"). |
| 172 | + WithTopRight("π±"). |
| 173 | + WithMidLeft("π"). |
| 174 | + WithCenter("β"). |
| 175 | + WithMidRight("π"). |
| 176 | + WithBottomLeft("π»"). |
| 177 | + WithBottomMid("πΎ"). |
| 178 | + WithBottomRight("π»") |
179 | 179 |
|
180 | 180 | table := tablewriter.NewTable(os.Stdout, tablewriter.WithRenderer(renderer.NewBlueprint(tw.Rendition{Symbols: symbols})))
|
181 | 181 | table.Header("Name", "Age", "City")
|
182 | 182 | table.Bulk(data)
|
183 | 183 | table.Render()
|
184 | 184 | }
|
185 |
| - |
186 | 185 | ```
|
187 | 186 |
|
188 | 187 | ```
|
189 |
| -β₯β₯β₯β₯β₯β₯β₯β₯β‘β₯β₯β₯β₯β₯β₯β₯β₯β‘β₯β₯β₯β₯β₯β₯β₯β₯β₯β₯β₯ |
190 |
| -β€ NAME β€ AGE β€ CITY β€ |
191 |
| -β£β₯β₯β₯β₯β₯β₯β₯ββ₯β₯β₯β₯β₯β₯β₯β₯ββ₯β₯β₯β₯β₯β₯β₯β₯β₯β₯β£ |
192 |
| -β€ Alice β€ 25 yrs β€ New York β€ |
193 |
| -β€ Bob β€ 30 yrs β€ Boston β€ |
194 |
| -β¦β₯β₯β₯β₯β₯β₯β₯β‘β₯β₯β₯β₯β₯β₯β₯β₯β‘β₯β₯β₯β₯β₯β₯β₯β₯β₯β₯β¦ |
| 188 | +π±~~~~~~β~~~~~~~~β~~~~~~~~~π± |
| 189 | +| NAME | AGE | CITY | |
| 190 | +π~~~~~~β~~~~~~~~β~~~~~~~~~π |
| 191 | +| Alice | 25 yrs | New York | |
| 192 | +| Bob | 30 yrs | Boston | |
| 193 | +π»~~~~~~β~~~~~~~~β~~~~~~~~~π» |
195 | 194 | ```
|
196 | 195 |
|
197 | 196 | See [symbols example](https://github.com/olekukonko/tablewriter/blob/master/_example/symbols/main.go) for more
|
|
0 commit comments