summaryrefslogtreecommitdiff
path: root/features/src/go/devcontainer-feature.json
diff options
context:
space:
mode:
Diffstat (limited to 'features/src/go/devcontainer-feature.json')
-rw-r--r--features/src/go/devcontainer-feature.json47
1 files changed, 47 insertions, 0 deletions
diff --git a/features/src/go/devcontainer-feature.json b/features/src/go/devcontainer-feature.json
new file mode 100644
index 0000000..ff2a469
--- /dev/null
+++ b/features/src/go/devcontainer-feature.json
@@ -0,0 +1,47 @@
+{
+ "id": "go",
+ "version": "1.2.2",
+ "name": "Go",
+ "documentationURL": "https://github.com/devcontainers/features/tree/main/src/go",
+ "description": "Installs Go and common Go utilities. Auto-detects latest version and installs needed dependencies.",
+ "options": {
+ "version": {
+ "type": "string",
+ "proposals": [
+ "latest",
+ "none",
+ "1.21",
+ "1.20"
+ ],
+ "default": "latest",
+ "description": "Select or enter a Go version to install"
+ },
+ "golangciLintVersion": {
+ "type": "string",
+ "default": "latest",
+ "description": "Version of golangci-lint to install"
+ }
+ },
+ "init": true,
+ "customizations": {
+ "vscode": {
+ "extensions": [
+ "golang.Go"
+ ]
+ }
+ },
+ "containerEnv": {
+ "GOROOT": "/usr/local/go",
+ "GOPATH": "/go",
+ "PATH": "/usr/local/go/bin:/go/bin:${PATH}"
+ },
+ "capAdd": [
+ "SYS_PTRACE"
+ ],
+ "securityOpt": [
+ "seccomp=unconfined"
+ ],
+ "installsAfter": [
+ "https://gitrepo.ru/api/packages/NeonXP/generic/features/latest/devcontainer-feature-common-utils.tgz"
+ ]
+}