mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:22:22 +00:00
fix typo
This commit is contained in:
parent
34a5869067
commit
156a874d6d
@ -119,7 +119,7 @@ func timeMiddleware(next http.Handler) http.Handler {
|
||||
}
|
||||
|
||||
func main() {
|
||||
http.HandleFunc("/", timeMiddleware(hello))
|
||||
http.Handle("/", timeMiddleware(http.HandlerFunc(hello)))
|
||||
err := http.ListenAndServe(":8080", nil)
|
||||
...
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user