run gofmt over server.go

This commit is contained in:
Chase Adams
2019-05-03 10:34:17 -07:00
parent 43758e0643
commit 22b4a09c06

View File

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