ch3: fix code path

This commit is contained in:
chai2010
2016-01-20 23:25:13 +08:00
parent 7fe7a309be
commit ca0f87fad9
5 changed files with 9 additions and 31 deletions

View File

@@ -75,9 +75,8 @@ func compute() (value float64, ok bool) {
![](../images/ch3-01.png)
<u><i>gopl.io/ch3/surface</i></u>
```Go
gopl.io/ch3/surface
// Surface computes an SVG rendering of a 3-D surface function.
package main
@@ -161,5 +160,3 @@ w.Header().Set("Content-Type", "image/svg+xml")
```
這一步在Lissajous例子中不是必須的因爲服務器使用標準的PNG圖像格式可以根據前面的512個字節自動輸出對應的頭部。允許客戶端通過HTTP請求參數設置高度、寬度和顔色等參數。