diff --git a/server.go b/server.go index 98d81a6..90bfbb3 100644 --- a/server.go +++ b/server.go @@ -2,22 +2,22 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *---------------------------------------------------------------------------------------*/ - - package main - - import ( - "io" - "net/http" - "fmt" - ) - - 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) - } \ No newline at end of file + +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) +}