Skip to content

How to add break line to Prefix #161

@minhkhiemm

Description

@minhkhiemm

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!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions