Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mackjoner/12a181b702cc012de31b78c5e58ec8c1 to your computer and use it in GitHub Desktop.
Save mackjoner/12a181b702cc012de31b78c5e58ec8c1 to your computer and use it in GitHub Desktop.
visual code go
{
// go configure
// "go.toolsEnvVars": {
// "GO111MODULE": "on"
// },
"go.lintTool": "golangci-lint",
// "go.lintFlags": [
// "--fast",
// "-D", "errcheck",
// "-E", "golint",
// "-E", "goimports",
// // "-E", "gocritic",
// "-E", "gocyclo",
// "-E", "gosec",
// "-E", "maligned",
// "-E", "scopelint",
// "-E", "interfacer",
// "-E", "goconst",
// "-E", "unconvert",
// "-E", "unparam",
// "-E", "prealloc",
// ],
"go.docsTool": "gogetdoc",
"go.formatTool": "goimports",
"go.useLanguageServer": true,
"go.alternateTools": {
"go-langserver": "gopls",
},
"go.languageServerExperimentalFeatures": {
"format": true,
"autoComplete": true
},
"[go]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
},
"go.testOnSave": false,
"go.coverOnSave": false,
"go.testFlags": ["-v"],
"go.testTimeout": "45s"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment