For mount sftp,why right click on exe file is so slow until it freezes

Using VSCode? If so, some real quick pointers based on my setup, if it helps...

In launch.json (for debug):

"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}",
"buildFlags": "-tags cmount",
"env": {
	"CGO_ENABLED": "0"
},

In settings.json (for intellisense etc)

{
    "go.buildTags": "cmount"
}

In tasks.json (for build):

"label": "Go build task",
"type": "shell",
"options": {
	"env": {
		"CGO_ENABLED": "0"
	}
},
"command": "go build -x -tags cmount",
"group": "build",

1 Like