Skip to content

Commit 30a1c48

Browse files
committed
handlefunc funcs switched
1 parent b05eb81 commit 30a1c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hello.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ func books(w http.ResponseWriter, r *http.Request) {
4545
}
4646

4747
func main() {
48-
log.Printf("Server at http://localhost%v.\n", port)
4948
http.HandleFunc("/", helloWorld)
5049
http.HandleFunc("/magazine/", books)
50+
log.Printf("Server at http://localhost%v.\n", port)
5151
log.Fatal(http.ListenAndServe(port, nil))
5252
}

0 commit comments

Comments
 (0)