mirror of
https://github.com/nabbar/golib.git
synced 2025-10-17 21:30:44 +08:00
- Fix some lint, style, error
- Pkg Error : change the register part to allow identify if a code is free or still defined - Pkg Error : apply change of register into all modules - Make some optimization
This commit is contained in:
@@ -121,6 +121,7 @@ func (p progressBar) NewBarSimpleETA(name string) Bar {
|
||||
decor.Name(name, decor.WC{W: len(name) + 1, C: decor.DidentRight}),
|
||||
// replace ETA decorator with "done" message, OnComplete event
|
||||
decor.OnComplete(
|
||||
// nolint: gomnd
|
||||
decor.AverageETA(decor.ET_STYLE_GO, decor.WC{W: 4}), defaultMessageDone,
|
||||
),
|
||||
),
|
||||
@@ -142,6 +143,7 @@ func (p progressBar) NewBarSimpleCounter(name string, total int64) Bar {
|
||||
decor.CountersNoUnit("[%d / %d] ", decor.WCSyncWidth),
|
||||
// replace ETA decorator with "done" message, OnComplete event
|
||||
decor.OnComplete(
|
||||
// nolint: gomnd
|
||||
decor.AverageETA(decor.ET_STYLE_GO, decor.WC{W: 4}), defaultMessageDone,
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user