style: don't repeat type declaration and for iota const block
@@ -39,10 +39,10 @@ type logLevel int
const (
DEBUG logLevel = iota
- INFO logLevel = iota
- WARNING logLevel = iota
- ERROR logLevel = iota
- CRITICAL logLevel = iota
+ INFO
+ WARNING
+ ERROR
+ CRITICAL
)
var logLevelNames = map[logLevel]string{
