- 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:
Nicolas JUHEL
2020-07-15 18:24:32 +02:00
parent d080f6c107
commit 379a99afdc
41 changed files with 782 additions and 132 deletions

View File

@@ -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,
),
),