I try go1.16
import "embed"
I get
> golangci-lint run ./...
> Can't run linter goanalysis_metalinter: bodyclose: failed prerequisites ... could not import embed
how skip file/package in golangci-lint?
golangci-lint run ./... > Can't run linter goanalysis_metalinter: bodyclose: failed prerequisites ... could not im" /> golangci-lint run ./... > Can't run linter goanalysis_metalinter: bodyclose: failed prerequisites ... could not im" /> golangci-lint run ./... > Can't run linter goanalysis_metalinter: bodyclose: failed prerequisites ... could not im"/>
Using a config file
You can customize the behavior with a config file. Docs are here https://golangci-lint.run/usage/configuration/. Make a
.golangci.ymlfile that looks like this://nolint
You can add
//nolintto the top of the file.See https://golangci-lint.run/usage/false-positives/