* format using `goimports -local github.com/mattermost/mattermost-server/v5 -w`

* added goimports lint check to .golangci.yml

* format using `goimports -local github.com/mattermost/mattermost-server/v5 -w` for a corner case

* make app-layers, *-mocks and store-layers for ci check

Co-authored-by: Mahmudul Haque <mahmudulhaque@protonmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Agniva De Sarker
2021-01-07 22:42:43 +05:30
committed by GitHub
parent 0c2c31bb0a
commit e89b26e8f3
337 changed files with 728 additions and 508 deletions

View File

@@ -3,7 +3,9 @@
package mlog
import "github.com/mattermost/logr"
import (
"github.com/mattermost/logr"
)
// onLoggerError is called when the logging system encounters an error,
// such as a target not able to write records. The targets will keep trying

View File

@@ -8,8 +8,9 @@ import (
"sync"
"testing"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v5/mlog"
)
// Test race condition when shutting down advanced logging. This test must run with the -race flag in order to verify

View File

@@ -3,7 +3,9 @@
package mlog
import "go.uber.org/zap"
import (
"go.uber.org/zap"
)
// Made for the plugin interface, use the regular logger for other uses
type SugarLogger struct {

View File

@@ -9,13 +9,12 @@ import (
"errors"
"fmt"
"net"
_ "net/http/pprof"
"sync"
"time"
"github.com/hashicorp/go-multierror"
"github.com/mattermost/logr"
_ "net/http/pprof"
)
const (