diff --git a/progress.go b/progress.go index b81dd69..94f02fd 100644 --- a/progress.go +++ b/progress.go @@ -114,13 +114,13 @@ // New creates a bar with provided BarFillerBuilder. func (p *Progress) New(total int64, builder BarFillerBuilder, options ...BarOption) *Bar { - return p.Add(total, builder.Build(), options...) -} - -// Add creates a bar which renders itself by provided filler. + return p.AddFiller(total, builder.Build(), options...) +} + +// AddFiller creates a bar which renders itself by provided filler. // If `total <= 0` triggering complete event by increment methods is disabled. // Panics if *Progress instance is done, i.e. called after (*Progress).Wait(). -func (p *Progress) Add(total int64, filler BarFiller, options ...BarOption) *Bar { +func (p *Progress) AddFiller(total int64, filler BarFiller, options ...BarOption) *Bar { if filler == nil { filler = NopStyle().Build() }