Skip to content

Commit

Permalink
docs: Update Usage-color Supports the fmt.Stringer interface impro…
Browse files Browse the repository at this point in the history
…ve clarity

muesli#134
  • Loading branch information
lc-1010 committed Sep 26, 2023
1 parent 8ce1138 commit be56e57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ s.Foreground(output.FromColor(color.RGBA{255, 128, 0, 255}))
s.Foreground(output.Color("#ffffff")).Background(output.Color("#0000ff"))

// Supports the fmt.Stringer interface
s = s.Foreground(output.Color("#ffffff")).Background(output.Color("#0000ff"))
fmt.Println(s)
fmt.Println(s.String())

```

## Styles
Expand Down

0 comments on commit be56e57

Please sign in to comment.