0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

goのlinterについて調べた

Posted at

go vet

goのデフォルトlinter

$ go vet {file_name}
$ go vet {package name}

golangci-int

vs code への設定方法

プロジェクト配下に設定ファイルを保存
.vscode/settings.json

{
    "go.lintOnSave":"workspace",
    "go.lintTool":"golangci-lint",
    "go.lintFlags":[
        "--fast"
    ]
}

vscodeのコマンドパレットで以下を入力

GO:Install/Update Tools

すべてチェックしてインストール

vscodeで保存するたびにlinterが走るようになった。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?