Skip to content

Commit bf0ab52

Browse files
committed
clarify and fix example
1 parent ac1693b commit bf0ab52

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Here’s a polished version of your introduction with improved clarity, structur
2222
### Installation
2323

2424
#### Legacy Version (v0.0.5)
25-
For production use with guaranteed compatibility:
25+
For use with legacy applications:
2626
```bash
2727
go get github.com/olekukonko/[email protected]
2828
```
2929

3030
#### Latest Version
31-
With some breaking changes:
31+
The latest version (API Change)
3232
```bash
3333
go get github.com/olekukonko/tablewriter@latest
3434
```

_example/filetable/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"fmt"
55
"github.com/olekukonko/tablewriter"
6+
"github.com/olekukonko/tablewriter/tw"
67
"io/fs"
78
"os"
89
"path/filepath"
@@ -18,7 +19,7 @@ const (
1819
)
1920

2021
func main() {
21-
table := tablewriter.NewTable(os.Stdout, tablewriter.WithTrimSpace(false))
22+
table := tablewriter.NewTable(os.Stdout, tablewriter.WithTrimSpace(tw.Off))
2223
table.Header([]string{"Tree", "Size", "Permissions", "Modified"})
2324
err := filepath.WalkDir(baseDir, func(path string, d fs.DirEntry, err error) error {
2425
if err != nil {

0 commit comments

Comments
 (0)