1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-23 20:02:22 +00:00

Merge pull request #60 from qichengzx/master

修改缩进
This commit is contained in:
Xargin 2018-02-26 23:04:19 +08:00 committed by GitHub
commit 529607a69c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,13 +137,13 @@ type Handler interface {
```go
type Handler interface {
ServeHTTP(ResponseWriter, *Request)
ServeHTTP(ResponseWriter, *Request)
}
type HandlerFunc func(ResponseWriter, *Request)
func (f HandlerFunc) ServeHTTP(w ResponseWriter, r *Request)
f(w, r)
f(w, r)
}
```