golang http 學習

來源:互聯網
上載者:User
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。

斷斷續續學習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 可以全部完成。

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.