Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add break line to Prefix #161

Open
minhkhiemm opened this issue Dec 2, 2019 · 0 comments
Open

How to add break line to Prefix #161

minhkhiemm opened this issue Dec 2, 2019 · 0 comments

Comments

@minhkhiemm
Copy link

I want to add the break line between prefix and the progress bar
[1/3]Prefix [2/3]#####################################################--------------------------------------------------------------------------------------------21/58

to be like this:

[1/3]Prefix 
[2/3]#####################################################--------------------------------------------------------------------------------------------21/58

my code:

bar.Prefix(fmt.Sprintf("[1/3] Prefix)) // add \n after this won't work
bar.Increment()
bar.BarEnd = fmt.Sprintf(
 "%v/%v",
 bar.Get(),
 len(total),
                  )

Many thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant