zoukankan      html  css  js  c++  java
  • golang http 学习

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

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

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

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

    1. learn http package structure

    1) http.Header   Cookie

       header.go  header_test.go

    pre knowledge (net extproto eader.go)

       cookie.go   cookie_test.go

        type Header map[string][]string

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

  • 相关阅读:
    太原市圆通快递网点
    快递单号查询小工具
    C#快递单号查询源码
    爱快递快递接口使用说明
    如何把网站及数据库部署到Windows Azure
    从window.console&&console.log(123)浅谈JS的且运算逻辑(&&)
    C# Enum 简易权限设计 使用FlagsAttribute属性
    Lambda 表达式(C# 编程指南)
    C# list使用方法
    SharePoint Server 2013介绍v2
  • 原文地址:https://www.cnblogs.com/harrysun/p/4418131.html
Copyright © 2011-2022 走看看