Skip to content

Commit

Permalink
Merge pull request #173 from eogns47/main
Browse files Browse the repository at this point in the history
📝docs: Add a library definition for ansi
  • Loading branch information
schollz authored Feb 24, 2024
2 parents a9bebf5 + 16e1f48 commit 2232dc9
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 @@ -70,7 +70,7 @@ There is a lot of customization that you can do - change the writer, the color,

```golang
bar := progressbar.NewOptions(1000,
progressbar.OptionSetWriter(ansi.NewAnsiStdout()),
progressbar.OptionSetWriter(ansi.NewAnsiStdout()), //you should install "github.com/k0kubun/go-ansi"
progressbar.OptionEnableColorCodes(true),
progressbar.OptionShowBytes(true),
progressbar.OptionSetWidth(15),
Expand Down

0 comments on commit 2232dc9

Please sign in to comment.