Move to gopath dir and introduce new package

This commit is contained in:
Alexander Krieg
2019-06-15 09:44:29 +00:00
parent c304afad0c
commit 6ce8b89114
2 changed files with 12 additions and 3 deletions

View File

@@ -1,23 +0,0 @@
/*----------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*---------------------------------------------------------------------------------------*/
package main
import (
"fmt"
"io"
"net/http"
)
func hello(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, "Hello remote world!")
}
func main() {
portNumber := "9000"
http.HandleFunc("/", hello)
fmt.Println("Server listening on port ", portNumber)
http.ListenAndServe(":"+portNumber, nil)
}