From 9b34b13da16957071e3cc363f9e9c7b51e6abe7f Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 29 May 2017 20:10:42 -0400 Subject: [PATCH] fix #350 and fix #345 --- eBook/01.1.md | 2 +- eBook/15.2.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eBook/01.1.md b/eBook/01.1.md index ee81c23..7b15f46 100644 --- a/eBook/01.1.md +++ b/eBook/01.1.md @@ -50,7 +50,7 @@ Go 编程语言的维基百科:[en.wikipedia.org/wiki/Go_(programming_language Go 语言相关资源的搜索引擎页面:[gowalker.org](https://gowalker.org) -Go 语言还有一个运行在 Google App Engine 上的 [Go Tour](http://tour.golang.org/),你也可以通过执行命令 `go install go-tour.googlecode.com/hg/gotour` 安装到你的本地机器上。对于中文读者,可以访问该指南的 [中文版本](http://go-tour-zh.appsp0t.com/),或通过命令 `go install https://bitbucket.org/mikespook/go-tour-zh/gotour` 进行安装。 +Go 语言还有一个运行在 Google App Engine 上的 [Go Tour](http://tour.golang.org/),你也可以通过执行命令 `go install go-tour.googlecode.com/hg/gotour` 安装到你的本地机器上。对于中文读者,可以访问该指南的 [中文版本](http://go-tour-zh.appspot.com/),或通过命令 `go install https://bitbucket.org/mikespook/go-tour-zh/gotour` 进行安装。 ## 链接 diff --git a/eBook/15.2.md b/eBook/15.2.md index 3531ace..426d410 100644 --- a/eBook/15.2.md +++ b/eBook/15.2.md @@ -83,7 +83,7 @@ type HandlerFunc func(ResponseWriter, *Request) ``` 它是一个可以把普通的函数当做HTTP处理器的适配器。如果`f`函数声明的合适,`HandlerFunc(f)`就是一个执行了`f`函数的处理器对象。 -`http.Handle`的第二个参数也可以是`T`的一个obj对象:`http.Handle("/", obj)`给T提供了`SereHTTP`方法,实现了http的`Handler`接口: +`http.Handle`的第二个参数也可以是`T`的一个obj对象:`http.Handle("/", obj)`给T提供了`ServeHTTP`方法,实现了http的`Handler`接口: ```go func (obj *Typ) ServeHTTP(w http.ResponseWriter, req *http.Request) { ...