Skip to content

Commit 9b3cad0

Browse files
committed
cleanup
1 parent 6cd1d11 commit 9b3cad0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: day20-go-tools/app/app.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@ package main
22

33
import (
44
"fmt"
5+
"github.com/gorilla/mux"
56
"log"
67
"net/http"
7-
8-
"github.com/gorilla/mux"
98
)
109

1110
func main() {
1211
r := mux.NewRouter()
1312
r.HandleFunc("/", Hello)
1413
http.Handle("/", r)
15-
fmt.Println("Starting up on 8080")
14+
fmt.Println("Starting the server on 8080")
1615
log.Fatal(http.ListenAndServe(":8080", nil))
1716
}
1817

1918
func Hello(w http.ResponseWriter, req *http.Request) {
20-
fmt.Fprintln(w, "Hello world!")
19+
fmt.Fprintln(w, "Hello from Go tools!")
2120
}

0 commit comments

Comments
 (0)