Skip to content

Commit f0d9107

Browse files
committed
docs: update README for new API usage
- Update border style and custom border configuration examples to use NewTable with Border/BorderConfigOpt options - Remove legacy NewTableWithStyle and SetBorderConfig usage from documentation - Ensure all usage examples reflect the current functional option API
1 parent da63c35 commit f0d9107

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func main() {
8787
### Changing Border Style
8888

8989
```go
90-
table := termhyo.NewTableWithStyle(os.Stdout, columns, termhyo.ASCIIStyle)
90+
table := termhyo.NewTable(os.Stdout, columns, termhyo.Border(termhyo.ASCIIStyle))
9191
```
9292

9393
### Text Alignment
@@ -136,7 +136,7 @@ customConfig := termhyo.BorderConfig{
136136
Padding: true, // Enable content padding
137137
}
138138

139-
table.SetBorderConfig(customConfig)
139+
table := termhyo.NewTable(os.Stdout, columns, termhyo.BorderConfigOpt(customConfig))
140140
```
141141

142142
## Running Examples

0 commit comments

Comments
 (0)