package appengine import "code.google.com/p/appengine-go/appengine" appengine包提供Google App Engine的基本函数服务。 更多细节参见:https://developers.google.com/appengine/docs/go/ Index type Multi...
分类:
移动开发 时间:
2014-09-12 20:50:44
阅读次数:
430
//定义结构体//首字母大写 , json:"msg_id" 是 tagtype Message struct { MsgId string `json:"msg_id"` Content string `json:"content"`}//json 序列号反序列化func T3_1() { m.....
分类:
Web程序 时间:
2014-09-12 20:31:33
阅读次数:
272
import "crypto/md5"import "encoding/hex"//go 生成 md5func T4_1() { m := md5.New() m.Write([]byte("123456")) println(hex.EncodeToString(m.Sum(ni...
分类:
其他好文 时间:
2014-09-12 20:29:54
阅读次数:
223
转自:http://www.baiyuxiong.com/?p=886 -----------------------------------------------------------------------上一篇go语言nsq源码解读-基本介绍 介绍了最基本的nsq环境搭建及使用。在最后使用...
分类:
数据库 时间:
2014-09-12 19:03:13
阅读次数:
251
func T2_1() {// 键值string , 值 int 类型m1 := map[string]int{}//添加一个元素m1["str1"] = 1fmt.Println(m1)//直接覆盖m1["str1"] = 2fmt.Println(m1)if v, ok := m1["str1"...
分类:
其他好文 时间:
2014-09-12 18:40:43
阅读次数:
226
切片是对某个容器不同区间范围的引用。 a := []int{0,0,0,0,0} 这行代码实际上包含了两个逻辑步骤: 1.创建了一个容量为5的容器 2.a引用容器[0:5]的区间,a[1]=1即设置变容器第二个位置的值为1。 b := a[0:2] 这行...
分类:
其他好文 时间:
2014-09-12 17:27:44
阅读次数:
193
记录许总演讲PPT指出的实践:channel– 本质上是一个 MessageQueue– 非常正统的执行体间通讯设施? sync.Mutex/RWMutex/Cond/etc– 不要把 channel 当做万金油,该 Mutex 还是要? 误区– 用 channel 来做互斥 ( 正常应该让 Mut...
分类:
其他好文 时间:
2014-09-12 16:39:53
阅读次数:
181
话说当今世界各种语言和伪语言群雄并起,连Rob Pike, Ken Thompson和Robert Griesemer等几位大神也坐不住了,推出了云时代的Go语言,期望其能延续C语言在系统层开发的辉煌。Go语言的语法设计要求简单,从事过OO开发的人来看GO语言的语法,甚至简单到变态,比如Functi...
分类:
其他好文 时间:
2014-09-12 15:05:43
阅读次数:
209
For driver developers and people interested in the latest bugfixes, you can compile the driver from the latest source code on»Github. Go to Github and...
分类:
数据库 时间:
2014-09-12 11:31:23
阅读次数:
184
以下是用sqlserver给数据库进行加密的脚本,其中当然也包含了证书创建的步骤:USE master;GO --drop master keyCREATE MASTER KEY ENCRYPTION BY PASSWORD = '123456'; GOBACKUP MASTER KEY TO...
分类:
数据库 时间:
2014-09-12 10:00:33
阅读次数:
239