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

2
.vscode/launch.json vendored
View File

@@ -6,7 +6,7 @@
"type": "go", "type": "go",
"request": "launch", "request": "launch",
"mode": "debug", "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 package hello
import ()
// User user type // User user type
type User struct { type User struct {
ID int64 ID int64

View File

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