Updated shared build environments

Updated check for errors.
Updated go.mod
Added .vscode launch
This commit is contained in:
notzippy@gmail.com
2022-02-20 17:16:12 -08:00
parent b562bd2dc5
commit ea5acb720f
10 changed files with 125 additions and 52 deletions

39
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,39 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Help",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceRoot}/revel",
"args": []
},
{
"name": "Create new",
"type": "go",
"request": "launch",
"preLaunchTask": "Clean",
"mode": "auto",
"program": "${workspaceRoot}/revel",
"args": ["new", "-a", "/tmp/revel/aaa"],
"env": {
"GOPATH": "/tmp/revel/GOPATH"
},
},
{
"name": "Run program",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceRoot}/revel",
"args": ["run","-v", "-a", "/tmp/revel/aaa"],
"env": {
"GOPATH": "/tmp/revel/GOPATH"
},
}
]
}

12
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,12 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Clean",
"type": "shell",
"command": "rm -rf /tmp/revel/aaa"
}
]
}