断断续续学习golang 已经有大半年了。golang
几回涉猎过golang net package, 去年也用过Beego,可是总以为本身只知皮毛,不能精通。因此,此次誓将其一举拿下。达到知道其宏观组织结构,又了解实现细节,甚至设计时各类考虑以及折中。cookie
目标树立好了,后面的就靠实践了。学习也要有计划,有条理。规划一个好的学习顺序和学习策略,能够节节高升,事半功倍。session
那下面就简单规划一下学习路径。本着先易后难,既注重实用,又兼顾细节的原则,规划以下。学习
1. learn http package structurespa
1) http.Header Cookie设计
header.go header_test.goorm
pre knowledge (net\textproto\reader.go)server
cookie.go cookie_test.go博客
type Header map[string][]stringstring
Cookie
2) Request, Response
request.go request_test.go
response.go response_test.go
responsewriter.go responsewriter_test.go
3) http.Client
4) http server
server.go server_test.go
1. 使用http package 简单实现一个我的博客,但愿借此更加深刻了解以下技术
1) route, - DefaultMux and defined Mux
2) redirect/ forward /
3) session, cookie
4) upload, download
5) form
- further
6) db
7) log
8) config
9) agent
------after step 1 and step 2
3. astaxie/bat
test qiniu API using astaxie/bat
4. astaxie/beego
第一阶段,交叉学习step 1 and step 2, 4/11/2015 -> 4/19/2015 (finish step 1) -> 4/26/2015 (finish step2)
第二阶段,交叉学习 step 3 and step 4 4/28->5/5(finish bat) -> 5/15 (finish Beego)
第一二阶段同时,了解go rountine schedule实现细节。 5/20 能够所有完成。