Add misspell, gocritic, and revive

This commit is contained in:
eikendev 2023-04-01 20:00:58 +02:00
parent 5e640800fe
commit 2c20e42a21
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
30 changed files with 79 additions and 43 deletions

View file

@ -1,5 +1,6 @@
// Source: https://github.com/toorop/gin-logrus
// Package log provides a connector between gin and logrus.
package log
import (

View file

@ -1,3 +1,4 @@
// Package log provides functionality to configure the logger.
package log
import (
@ -6,6 +7,7 @@ import (
log "github.com/sirupsen/logrus"
)
// L is the global logger instance for PushBits.
var L *log.Logger
func init() {
@ -17,6 +19,7 @@ func init() {
})
}
// SetDebug sets the logger to output debug information.
func SetDebug() {
L.SetLevel(log.DebugLevel)
}