netboxapi/.devcontainer/devcontainer.json

19 lines
687 B
JSON
Raw Normal View History

2023-03-26 07:33:41 +00:00
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/go
{
"name": "Go",
"image": "mcr.microsoft.com/devcontainers/go:1.20",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/guiyomh/features/vim": {}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": {
"download revive": "go install github.com/mgechev/revive@latest",
"add githook": "echo revive -set_exit_status > .git/hooks/pre-commit",
"chmod githook": "chmod +x .git/hooks/pre-commit"
}
}