코딩/GoLang
golang vscode args 전달 방법
이쿠우우
2022. 1. 2. 14:49
반응형
golang vscode args 전달 방법
vscode 에서 golang project를 생성하면
default로 아래와 같이 .vscode/launch.json 파일이 생성됨.
default로 아래와 같이 .vscode/launch.json 파일이 생성됨.

[예제 launch.json]
{
// 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": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}",
"args": ["-U", "test"]
}
]
}
반응형