Skip to content

Commit e9aa807

Browse files
committed
improve readme
1 parent 3f8a175 commit e9aa807

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

β€ŽREADME.md

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ go get github.com/olekukonko/[email protected]
2828
#### Latest Version
2929
The latest stable version
3030
```bash
31-
go get github.com/olekukonko/[email protected].1
31+
go get github.com/olekukonko/[email protected].3
3232
```
3333

3434
**Warning:** Version `v1.0.0` contains missing functionality and should not be used.
@@ -77,7 +77,7 @@ func main() {
7777
β”‚ PACKAGE β”‚ VERSION β”‚ STATUS β”‚
7878
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€
7979
β”‚ tablewriter β”‚ v0.0.5 β”‚ legacy β”‚
80-
β”‚ tablewriter β”‚ v1.0.0 β”‚ latest β”‚
80+
β”‚ tablewriter β”‚ v1.0.3 β”‚ latest β”‚
8181
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜
8282
```
8383

@@ -164,34 +164,33 @@ func main() {
164164
{"Bob", Age(30), "Boston"},
165165
}
166166

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("🌻")
179179

180180
table := tablewriter.NewTable(os.Stdout, tablewriter.WithRenderer(renderer.NewBlueprint(tw.Rendition{Symbols: symbols})))
181181
table.Header("Name", "Age", "City")
182182
table.Bulk(data)
183183
table.Render()
184184
}
185-
186185
```
187186

188187
```
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+
🌻~~~~~~❀~~~~~~~~❀~~~~~~~~~🌻
195194
```
196195

197196
See [symbols example](https://github.com/olekukonko/tablewriter/blob/master/_example/symbols/main.go) for more

0 commit comments

Comments
Β (0)