docs: wrong description on readme

This commit is contained in:
Reinaldy Rafli 2021-10-27 21:21:21 +07:00
parent 1ee7ff17f9
commit 559192bae5
No known key found for this signature in database
GPG Key ID: CFDB9400255D8CB6
1 changed files with 10 additions and 10 deletions

View File

@ -31,16 +31,16 @@ The usage is pretty straight forward, on your Go file:
import "github.com/aldy505/asciitxt"
func main() {
output := asciitxt.New("Hello world", asciitxt.Standard)
output := asciitxt.New("Hello world")
// or
output = asciitxt.WithConfig("Hello world", &asciitxt.Config{
Style: asciitxt.Standard,
Style: asciitxt.StyleStandard,
})
}
What's the asciitxt.Standard, you asked.
What's the asciitxt.StyleStandard, you asked.
Well, I thought it would be nice if we could have more than one style.
But, for now that's a long term plan.