5.10 Context-总结与面试要点
(base) yanglei@yuanhong 10-summary % tree ./
./
├── context.go
├── context_test.go
├── go.mod
├── go.sum
├── handleFunc.go
├── httpServer.go
├── httpServer_test.go
├── matchNode.go
├── node.go
├── router.go
├── router_test.go
├── serverInterface.go
└── stringValue.go
0 directories, 13 filesPART1. Context是线程安全的吗?
PART2. Context为什么不设计为接口?
PART3. Context能不能用泛型?


PART4. 面试要点
4.1 能否重复读取HTTP协议的Body内容(即http.Request.Body能否被重复读取)?
http.Request.Body能否被重复读取)?4.2 能否修改HTTP协议的响应?
4.3 Form 和 PostForm 的区别?
4.4 Web框架是怎么支持路径参数的?
4.5 v5版本的实现
Last updated