diff --git a/.devcontainer/.dockerignore b/.devcontainer/.dockerignore new file mode 100755 index 0000000..ac9cb06 --- /dev/null +++ b/.devcontainer/.dockerignore @@ -0,0 +1,5 @@ +.dockerignore +devcontainer.json +docker-compose.yml +Dockerfile +README.md diff --git a/.devcontainer/Dockefile b/.devcontainer/Dockefile new file mode 100644 index 0000000..9d3c502 --- /dev/null +++ b/.devcontainer/Dockefile @@ -0,0 +1 @@ +FROM qmcgaw/godevcontainer diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100755 index 0000000..976ffcc --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,7 @@ +FROM qmcgaw/godevcontainer +RUN cat >>~/.zshrc<~!@#%^&*|+=[]{}`~?", + "editor.glyphMargin": false, + "editor.suggestSelection": "first", + "editor.fontLigatures": true, + "editor.fontWeight": 400, + "editor.fontSize": 14, + "editor.rulers": [ + 80, // <- a ruler in the default color or as customized (with "editorRuler.foreground") at column 100 + { + "column": 100, + "color": "#ff0000" + }, + ], + "git.confirmSync": false, + "git.autofetch": true, + "git.pullTags": false, + "git.autofetchPeriod": 60, + "git.enableSmartCommit": true, + // Go + "[go]": { + "editor.formatOnSave": true, + "editor.tabSize": 2, + "editor.insertSpaces": true, + "editor.defaultFormatter": "golang.go", + "editor.codeActionsOnSave": { + "source.organizeImports": true + }, + "files.eol": "\n", // formatting only supports LF line ending + }, + "go.useLanguageServer": true, + "go.vetOnSave": "package", + // "go.languageServerExperimentalFeatures": { + // "diagnostics": true, + // }, + "go.lintOnSave": "file", + "go.formatTool": "gofmt", + "go.lintTool": "golangci-lint", + "go.lintFlags": [ + "--fast" + ], + "go.toolsManagement.autoUpdate": true, + "gopls": { + "completeUnimported": true, + "formatting.gofumpt": true, + "completionDocumentation": true, + "ui.completion.usePlaceholders": true, + "build.expandWorkspaceToModule": true, + "build.experimentalWorkspaceModule": true, + "hoverKind": "SynopsisDocumentation" // No/Synopsis/Full, default Synopsis + }, +}