Skip to content

Commit

Permalink
Update 15.2.md (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
huruji authored Oct 23, 2021
1 parent 381d375 commit d5578df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eBook/15.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ http.ListenAndServe(":8080", http.HandlerFunc(HelloServer))
2)`fmt.Fprint``fmt.Fprintf` 都是可以用来写入 `http.ResponseWriter` 的函数(他们实现了 `io.Writer`)。
比如我们可以使用
```go
fmt.Fprintf(w, "<h1>%s<h1><div>%s</div>", title, body)
fmt.Fprintf(w, "<h1>%s</h1><div>%s</div>", title, body)
```
来构建一个非常简单的网页并插入 `title``body` 的值。

Expand Down

0 comments on commit d5578df

Please sign in to comment.