Update go example, README
This commit is contained in:
@@ -23,7 +23,15 @@ RUN go get -u -v \
|
||||
github.com/mgechev/revive \
|
||||
github.com/derekparker/delve/cmd/dlv
|
||||
|
||||
# Install git, process tools
|
||||
# gocode-gomod
|
||||
RUN go get -x -d github.com/stamblerre/gocode \
|
||||
&& go build -o gocode-gomod github.com/stamblerre/gocode \
|
||||
&& mv gocode-gomod $GOPATH/bin/
|
||||
|
||||
# Copy default endpoint specific user settings overrides into container to specify Python path
|
||||
COPY settings.vscode.json /root/.vscode-remote/data/Machine/settings.json
|
||||
|
||||
# Verify git, process tools installed
|
||||
RUN apt-get update && apt-get -y install git procps
|
||||
|
||||
# Clean up
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "Go",
|
||||
"dockerFile": "Dockerfile",
|
||||
"appPort": 9000,
|
||||
"extensions": [
|
||||
"ms-vscode.go"
|
||||
],
|
||||
|
||||
3
.devcontainer/settings.vscode.json
Normal file
3
.devcontainer/settings.vscode.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"go.gopath": "/go"
|
||||
}
|
||||
Reference in New Issue
Block a user