Merge pull request #28 from uta-mori/master

support go modules
This commit is contained in:
Chuck Lantz
2020-07-29 14:36:49 -07:00
committed by GitHub
4 changed files with 7 additions and 5 deletions

4
.vscode/launch.json vendored
View File

@@ -6,7 +6,7 @@
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/src/main/server.go"
"program": "${workspaceFolder}/server.go"
}
]
}
}

3
go.mod Normal file
View File

@@ -0,0 +1,3 @@
module github.com/microsoft/vscode-remote-try-go
go 1.14

View File

@@ -1,7 +1,5 @@
package hello
import ()
// User user type
type User struct {
ID int64

View File

@@ -7,9 +7,10 @@ package main
import (
"fmt"
"hello"
"io"
"net/http"
"github.com/microsoft/vscode-remote-try-go/hello"
)
func handle(w http.ResponseWriter, r *http.Request) {