diff --git a/.vscode/settings.json b/.vscode/settings.json index 0967ef4..874e58d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1 +1,10 @@ -{} +{ + "go.lintTool": "golangci-lint", + "go.lintFlags": ["run", "--enable=errcheck"], + "go.toolsEnvVars": { + "GO111MODULE": "on" + }, + "go.lintOnSave": "package", + "go.vetOnSave": "package", + "go.useLanguageServer": true +} diff --git a/golangci.yaml b/golangci.yaml new file mode 100644 index 0000000..6bbd605 --- /dev/null +++ b/golangci.yaml @@ -0,0 +1,3 @@ +linters: + enable: + - errcheck