We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cd1d11 commit 9b3cad0Copy full SHA for 9b3cad0
day20-go-tools/app/app.go
@@ -2,20 +2,19 @@ package main
2
3
import (
4
"fmt"
5
+ "github.com/gorilla/mux"
6
"log"
7
"net/http"
-
8
- "github.com/gorilla/mux"
9
)
10
11
func main() {
12
r := mux.NewRouter()
13
r.HandleFunc("/", Hello)
14
http.Handle("/", r)
15
- fmt.Println("Starting up on 8080")
+ fmt.Println("Starting the server on 8080")
16
log.Fatal(http.ListenAndServe(":8080", nil))
17
}
18
19
func Hello(w http.ResponseWriter, req *http.Request) {
20
- fmt.Fprintln(w, "Hello world!")
+ fmt.Fprintln(w, "Hello from Go tools!")
21
0 commit comments