run gofmt over server.go
This commit is contained in:
18
server.go
18
server.go
@@ -3,21 +3,21 @@
|
|||||||
* 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 (
|
||||||
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"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!")
|
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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user