From 687d7b414336a86033cd65b83c96916b21f0ed2a Mon Sep 17 00:00:00 2001 From: chai2010 Date: Wed, 16 Dec 2015 12:09:57 +0800 Subject: [PATCH] zz --- SUMMARY.md | 2 -- exercise/ex-ch1-01-answer.md | 1 - exercise/ex-ch1-01.md | 2 -- exercise/ex-ch1-02.md | 1 - exercise/ex-ch1-03.md | 2 -- exercise/ex-ch1-04.md | 2 -- exercise/ex-ch1-05.md | 1 - exercise/ex-ch1-06.md | 2 -- exercise/ex-ch1-07.md | 2 -- exercise/ex-ch1-08.md | 2 -- exercise/ex-ch1-09.md | 2 -- exercise/ex-ch1-10.md | 2 -- exercise/ex-ch1-11.md | 2 -- exercise/ex-ch1-12.md | 2 -- exercise/ex-ch1.md | 27 --------------------------- exercise/ex.md | 3 --- 16 files changed, 55 deletions(-) delete mode 100644 exercise/ex-ch1-01-answer.md delete mode 100644 exercise/ex-ch1-01.md delete mode 100644 exercise/ex-ch1-02.md delete mode 100644 exercise/ex-ch1-03.md delete mode 100644 exercise/ex-ch1-04.md delete mode 100644 exercise/ex-ch1-05.md delete mode 100644 exercise/ex-ch1-06.md delete mode 100644 exercise/ex-ch1-07.md delete mode 100644 exercise/ex-ch1-08.md delete mode 100644 exercise/ex-ch1-09.md delete mode 100644 exercise/ex-ch1-10.md delete mode 100644 exercise/ex-ch1-11.md delete mode 100644 exercise/ex-ch1-12.md delete mode 100644 exercise/ex-ch1.md delete mode 100644 exercise/ex.md diff --git a/SUMMARY.md b/SUMMARY.md index a61edc5..e622f4f 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -122,7 +122,5 @@ * [示例: 深度相等判斷](ch13/ch13-03.md) * [通過cgo調用C代碼](ch13/ch13-04.md) * [幾點忠告](ch13/ch13-05.md) -* [習題解答](exercise/ex.md) - * [第一章 入門](exercise/ex-ch1.md) * [勘誤](errata.md) diff --git a/exercise/ex-ch1-01-answer.md b/exercise/ex-ch1-01-answer.md deleted file mode 100644 index 1333ed7..0000000 --- a/exercise/ex-ch1-01-answer.md +++ /dev/null @@ -1 +0,0 @@ -TODO diff --git a/exercise/ex-ch1-01.md b/exercise/ex-ch1-01.md deleted file mode 100644 index 5fb37a3..0000000 --- a/exercise/ex-ch1-01.md +++ /dev/null @@ -1,2 +0,0 @@ -**練習 1.1:** 脩改echo程序,使其能夠打印os.Args[0]。 - diff --git a/exercise/ex-ch1-02.md b/exercise/ex-ch1-02.md deleted file mode 100644 index 89c6917..0000000 --- a/exercise/ex-ch1-02.md +++ /dev/null @@ -1 +0,0 @@ -**練習 1.2:** 脩改echo程序,使其打印value和index,每個value和index顯示一行。 diff --git a/exercise/ex-ch1-03.md b/exercise/ex-ch1-03.md deleted file mode 100644 index 0237e39..0000000 --- a/exercise/ex-ch1-03.md +++ /dev/null @@ -1,2 +0,0 @@ -**練習 1.3:** 上手實踐前麫提到的strings.Join和直接Println,併觀察輸齣結果的區彆。 - diff --git a/exercise/ex-ch1-04.md b/exercise/ex-ch1-04.md deleted file mode 100644 index 1286514..0000000 --- a/exercise/ex-ch1-04.md +++ /dev/null @@ -1,2 +0,0 @@ -**練習 1.4:** 脩改dup2,使其可以打印重復的行分彆齣現在哪些文件。 - diff --git a/exercise/ex-ch1-05.md b/exercise/ex-ch1-05.md deleted file mode 100644 index 15dd359..0000000 --- a/exercise/ex-ch1-05.md +++ /dev/null @@ -1 +0,0 @@ -**練習 1.5:** 脩改前麫的Lissajous程序裏的調色闆,由緑色改為黑色。我們可以用color.RGBA{0xRR, 0xGG, 0xBB}來得到#RRGGBB這個色值,三個十六進製的字符串分彆代錶紅、緑、藍像素。 diff --git a/exercise/ex-ch1-06.md b/exercise/ex-ch1-06.md deleted file mode 100644 index 988395a..0000000 --- a/exercise/ex-ch1-06.md +++ /dev/null @@ -1,2 +0,0 @@ -**練習 1.6:** 脩改Lissajous程序,脩改其調色闆來生成更豐富的顔色,然後脩改SetColorIndex的第三個參數,看看顯示結果吧。 - diff --git a/exercise/ex-ch1-07.md b/exercise/ex-ch1-07.md deleted file mode 100644 index b605588..0000000 --- a/exercise/ex-ch1-07.md +++ /dev/null @@ -1,2 +0,0 @@ -**練習 1.7:** 函數調用io.Copy(dst, src)會從src中讀取內容,併將讀到的結果寫入到dst中,使用這個函數替代掉例子中的ioutil.ReadAll來拷貝響應結構體到os.Stdout,避免申請一個緩衝區(例子中的b)來存儲。記得處理io.Copy返迴結果中的錯誤。 - diff --git a/exercise/ex-ch1-08.md b/exercise/ex-ch1-08.md deleted file mode 100644 index f8a9c56..0000000 --- a/exercise/ex-ch1-08.md +++ /dev/null @@ -1,2 +0,0 @@ -**練習 1.8:** 脩改fetch這個範例,如果輸入的url參數沒有http://前綴的話,為這個url加上該前綴。你可能會用到strings.HasPrefix這個函數。 - diff --git a/exercise/ex-ch1-09.md b/exercise/ex-ch1-09.md deleted file mode 100644 index da50fff..0000000 --- a/exercise/ex-ch1-09.md +++ /dev/null @@ -1,2 +0,0 @@ -**練習 1.9:** 脩改fetch打印齣HTTP協議的狀態碼,可以從resp.Status變量得到該狀態碼。 - diff --git a/exercise/ex-ch1-10.md b/exercise/ex-ch1-10.md deleted file mode 100644 index 5474f6d..0000000 --- a/exercise/ex-ch1-10.md +++ /dev/null @@ -1,2 +0,0 @@ -**練習 1.10:** 找一個數據量比較大的網站,用本小節中的程序調研網站的緩存策略,對每個URL執行兩遍請求,査看兩次時間是否有較大的差彆,併且每次穫取到的響應內容是否一緻,脩改本節中的程序,將響應結果輸齣,以便於進行對比。 - diff --git a/exercise/ex-ch1-11.md b/exercise/ex-ch1-11.md deleted file mode 100644 index 2b696ba..0000000 --- a/exercise/ex-ch1-11.md +++ /dev/null @@ -1,2 +0,0 @@ -**練習 1.11:** Try fetchall with longer argument lists, such as samples from the top million web sites available at alexa.com. How does the program behave if a web site just doesn’t respond? (Section 8.9 describes mechanisms for coping in such cases.) - diff --git a/exercise/ex-ch1-12.md b/exercise/ex-ch1-12.md deleted file mode 100644 index 2ac215f..0000000 --- a/exercise/ex-ch1-12.md +++ /dev/null @@ -1,2 +0,0 @@ -**練習 1.12:** 脩改Lissajour服務,從URL讀取變量,比如你可以訪問http://localhost:8000/?cycles=20這個URL,這樣訪問可以將程序裏的cycles默認的5脩改為20。字符串轉換為數字可以調用strconv.Atoi函數。你可以在dodoc裏査看strconv.Atoi的詳細說明。 - diff --git a/exercise/ex-ch1.md b/exercise/ex-ch1.md deleted file mode 100644 index 1e5841a..0000000 --- a/exercise/ex-ch1.md +++ /dev/null @@ -1,27 +0,0 @@ -## 習題解答: 第一章 入門 - -{% include "./ex-ch1-01.md" %} -{% include "./ex-ch1-01-answer.md" %} - -{% include "./ex-ch1-02.md" %} - -{% include "./ex-ch1-03.md" %} - -{% include "./ex-ch1-04.md" %} - -{% include "./ex-ch1-05.md" %} - -{% include "./ex-ch1-06.md" %} - -{% include "./ex-ch1-07.md" %} - -{% include "./ex-ch1-08.md" %} - -{% include "./ex-ch1-09.md" %} - -{% include "./ex-ch1-10.md" %} - -{% include "./ex-ch1-11.md" %} - -{% include "./ex-ch1-12.md" %} - diff --git a/exercise/ex.md b/exercise/ex.md deleted file mode 100644 index 3759d27..0000000 --- a/exercise/ex.md +++ /dev/null @@ -1,3 +0,0 @@ -# 附彔A: 習題解答 - -TODO