Created
September 9, 2019 14:17
-
-
Save phuctm97/ac98856c8ee5dc6a005e53d1737fc2a4 to your computer and use it in GitHub Desktop.
Go RESTful series
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"dockerFile": "Dockerfile", | |
// Configure port mapping between containers and local host, | |
// should be updated respectively to exposed service ports of referencing containers | |
// (defined in Dockerfile or docker-compose.xml or pre-built images). | |
"appPort": [ | |
"8000:8000" | |
], | |
// Configure to mount local workspace to a proper location within containers following Go module importing mechanism, | |
// should be updated respectively to module importing schema using in Go source files, | |
// and remote repository location if necessary (recommended). | |
"workspaceMount": "src=${localWorkspaceFolder},dst=/go/src/github.com/the-evengers/go-restful,type=bind", | |
"workspaceFolder": "/go/src/github.com/the-evengers/go-restful", | |
// Configure command to run after launching containers. | |
// `dep ensure`: install all external Go modules (derived from Gopkg.lock and actual import statements in Go source files). | |
"postCreateCommand": "dep ensure", | |
// Configure VSCode extensions to be installed into containers' underlying VSCode Server after having finished launching them. | |
"extensions": [ | |
"ms-vscode.go", | |
"bungcip.better-toml" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment