start block channel must not be nil
Vladimir Bauer
8 years ago
| 20 | 20 | // |
| 21 | 21 | // `wcc` optional WC config |
| 22 | 22 | func ETA(style int, age float64, sbCh chan time.Time, wcc ...WC) Decorator { |
| 23 | if sbCh == nil { | |
| 24 | panic("start block channel must not be nil") | |
| 25 | } | |
| 23 | 26 | var wc WC |
| 24 | 27 | for _, widthConf := range wcc { |
| 25 | 28 | wc = widthConf |