From 692b236c6ccd5839a4d5b52aa458b7972919571a Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Tue, 8 Dec 2020 12:37:31 +0100 Subject: [PATCH] update linter settings --- .golangci.yml | 3 +++ internal/logger/logger.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 028b6ae8..c558921b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,3 +6,6 @@ linters: - gofmt - golint - misspell + +issues: + exclude-use-default: false diff --git a/internal/logger/logger.go b/internal/logger/logger.go index 2fc66db6..4a05c6fe 100644 --- a/internal/logger/logger.go +++ b/internal/logger/logger.go @@ -13,14 +13,13 @@ import ( // Level is a log level. type Level int +// Log levels. const ( Debug Level = iota Info Warn ) -// Log levels. - // Destination is a log destination. type Destination int @@ -102,6 +101,7 @@ func itoa(buf *[]byte, i int, wid int) { *buf = append(*buf, b[bp:]...) } +// Log writes a log entry. func (lh *Logger) Log(level Level, format string, args ...interface{}) { if level < lh.level { return