netboxapi/.devcontainer/devcontainer.json
Nils Stinnesbeck deacfad22d
* added GetIPAddresses function
* pagination is handled in a more sane way
* removed unnecessary lines in devcontainer.json
* renamed main.go to ipam.go
2023-03-26 15:05:58 +02:00

19 lines
687 B
JSON

// 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"
}
}