-
| env: 
 cmd:  output: package main
import (
	"context"
	"errors"
	"fmt"
	
	"dental/api/web/src/router"
	"github.com/gin-gonic/gin"      ###   differ here
	"github.com/gookit/color"
)cmd:  output package main
import (
	"context"
	"errors"
	"fmt"
	
	"dental/api/web/src/router"
	"github.com/gin-gonic/gin"
	"github.com/gookit/color"
)my .golangci.yaml will be like version: "2"
linters:
  # Default set of linters.
  # The value can be: `standard`, `all`, `none`, or `fast`.
  # Default: standard
  default: fast
  settings:
    nestif:
      min-complexity: 10
    cyclop:
      max-complexity: 15
    tagliatelle:
      case:
        rules:
          json: snake
          toml: snake
          form: snake
          mapstructure: snake
          xml: snake
formatters:
  enable:
    - gci
    - gofumpt
    - goimports
    - golinesi do not know why this will happen | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
| can you provide a reproducible example? | 
Beta Was this translation helpful? Give feedback.
-
| You are using 4 formatters at the same time. To have the same format as  | 
Beta Was this translation helpful? Give feedback.
You are using 4 formatters at the same time.
To have the same format as
goimports, you must enable onlygoimports.