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

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