上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 24 下一页
摘要: driver: bad connection 原因:rows没Close 阅读全文
posted @ 2017-04-01 00:42 cdongyang 阅读(3524) 评论(0) 推荐(0) 编辑
摘要: socket请求对方关闭时Write(nil),对方会接收到EOF然后关闭 阅读全文
posted @ 2017-03-28 17:37 cdongyang 阅读(93) 评论(0) 推荐(0) 编辑
摘要: prepare,execute PL/pgSQL - SQL Procedural Language-Control Structures Advanced Features-Transactions Returning Data From Modified Rows(returning只能用于刚刚 阅读全文
posted @ 2017-03-27 21:41 cdongyang 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1 func AddGroup(w http.ResponseWriter, req *http.Request) { 2 3 outputReq(req) 4 5 responseJson := map[string]interface{}{jsonKeyMessage: "", jsonKeyR 阅读全文
posted @ 2017-03-26 15:52 cdongyang 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 1 package main 2 3 import ( 4 "fmt" 5 //"net/http" 6 ) 7 8 func modifyMap(s map[string]interface{}) { 9 s["a"]="a" 10 } 11 func modifyArray(a [5]int) 阅读全文
posted @ 2017-03-23 16:10 cdongyang 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1.建用户,建库,建表,增删查改,数据类型,数据类型操作函数和运算符 2.事务的使用,begin开始事务,出错rollback,完成时commit 3.执行语句是使用returning 返回指定值,如insert into users(id) ('10001') returning id; 4.在官 阅读全文
posted @ 2017-03-18 10:48 cdongyang 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.csdn.net/kjfcpua/article/details/18265441 阅读全文
posted @ 2017-03-17 21:56 cdongyang 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.csdn.net/qq_15437667/article/details/51042366 1.Socket编程 以前使用Socket编程时,一般是如下步骤 go tcp版真的很省事 服务端: 就是Listen、Accept、Read/Write 客户端 就是Dial、 阅读全文
posted @ 2017-03-17 13:49 cdongyang 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1 package main 2 import ( 3 "net/http" 4 "time" 5 "math/rand" 6 "io/ioutil" 7 "net/url" 8 "strings" 9 "fmt" 10 ) 11 func randString() string { 12 var 阅读全文
posted @ 2017-03-17 13:34 cdongyang 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 原博客:http://blog.csdn.net/weiwangchao_/article/details/7225338 Linux环境下的TCP Keepalive参数设置 为什么说是系统默认值的呢?因为有这样几个值,我们并没有手动设置,是采用的系统默认值。即, 如果是Linux操作系统,这三个 阅读全文
posted @ 2017-03-17 13:30 cdongyang 阅读(880) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 24 下一页