{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "build linux", "type": "shell", "group": { "kind": "build", "isDefault": true }, "presentation": { "echo": true, "panel": "new" }, "options": { "cwd": "${workspaceRoot}", "env": { "APP": "pakitara", "GOOS": "linux", "GOARCH": "amd64", "GOBIN": "${env:GOPATH}/bin" }, "args": [ "ldflags '-s -w'" ] }, "command": "go build -o $GOBIN/$APP-$GOOS-$GOARCH -ldflags \"-s -w\" $APP.go", "problemMatcher": [] }, { "label": "build windows", "type": "shell", "group": "build", "presentation": { "echo": true, "panel": "new" }, "options": { "cwd": "${workspaceRoot}", "env": { "APP": "pakitara", "GOOS": "windows", "GOARCH": "amd64", "GOBIN": "${env:GOPATH}/bin" }, "args": [ "ldflags '-s -w'" ] }, "command": "go build -o $GOBIN\\$APP-$GOOS-$GOARCH.exe -ldflags \"-s -w\" $APP.go" } ] }