码迷,mamicode.com
首页 > Web开发 > 详细

golang http 学习

时间:2015-04-11 19:25:49      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:

断断续续学习golang 已经有大半年了。

几次涉猎过golang net package, 去年也用过Beego,但是总觉得自己只知皮毛,不能精通。所以,这次誓将其一举拿下。达到知道其宏观组织结构,又了解实现细节,甚至设计时各种考虑以及折中。

目标树立好了,后面的就靠实践了。学习也要有计划,有条理。规划一个好的学习顺序和学习策略,可以节节高升,事半功倍。

 

那下面就简单规划一下学习路径。本着先易后难,既注重实用,又兼顾细节的原则,规划如下。

 

1. learn http package structure

1) http.Header   Cookie

   header.go  header_test.go

   cookie.go   cookie_test.go

    type Header map[string][]string

    Cookie

2) http.Client

3) Request,  Response

    request.go   request_test.go

    response.go  response_test.go

    responsewriter.go responsewriter_test.go

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 可以全部完成。

 

golang http 学习

标签:

原文地址:http://www.cnblogs.com/harrysun/p/4418131.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!