4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@@ -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
3
go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module github.com/microsoft/vscode-remote-try-go
|
||||
|
||||
go 1.14
|
||||
@@ -1,7 +1,5 @@
|
||||
package hello
|
||||
|
||||
import ()
|
||||
|
||||
// User user type
|
||||
type User struct {
|
||||
ID int64
|
||||
@@ -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) {
|
||||
Reference in New Issue
Block a user