Skip to content

Commit

Permalink
docs: Update docs for Style().
Browse files Browse the repository at this point in the history
  • Loading branch information
jwalton committed Aug 4, 2021
1 parent c53d366 commit 0d26fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ if err == nil {
fmt.Println(gchalk.StyleMust("bold", "red")("This is also bold and red."))
```

`Style` and `StyleMust` allow styling a string based on the names of colors and modifiers. There's also a `WithStyle` and `WithStyleMust` for chaining named styles with other styles.
`Style` and `StyleMust` allow styling a string based on the case-insensitive names of colors and modifiers. There's also a `WithStyle` and `WithStyleMust` for chaining named styles with other styles. These funcions can also accept hex codes or `bg#000000` hex codes for background colors.

### gchalk.SetLevel(level) and gchalk.GetLevel()

Expand Down

0 comments on commit 0d26fdb

Please sign in to comment.