mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2025-08-14 18:41:42 +00:00
ch3: fix code path
This commit is contained in:
@@ -75,9 +75,8 @@ func compute() (value float64, ok bool) {
|
||||
|
||||

|
||||
|
||||
|
||||
<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請求參數設置高度、寬度和顔色等參數。
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user