摘要: go redis 1、安装导入 使用第三方开源的redis库: github.com/garyburd/redigo/redis github:https://github.com/antirez/redis Doc:http://godoc.org/github.com/garyburd/redi 阅读全文
posted @ 2017-09-11 14:23 shhnwangjian 阅读(304) 评论(0) 推荐(0) 编辑
摘要: TCP编程 1、客户端和服务器 2、服务端的处理流程 监听端口 接收客户端的链接 创建goroutine,处理该链接 3、客户端的处理流程 建立与服务端的链接 进行数据收发 关闭链接 服务端代码 客户端代码 发送http请求 阅读全文
posted @ 2017-09-11 11:01 shhnwangjian 阅读(539) 评论(0) 推荐(0) 编辑