Chinaunix首页 | 论坛 | 博客
  • 博客访问: 302971
  • 博文数量: 35
  • 博客积分: 825
  • 博客等级:
  • 技术积分: 913
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-11 09:44
文章分类

全部博文(35)

文章存档

2013年(10)

2012年(24)

2010年(1)

我的朋友

发布时间:2013-02-03 00:17:11

Go allows you to define a struct that has fields but with no variable names. These fields are called anonymous fields. Let’s do a few examples to find out what they are and how they will be useful. 你可以定义一个结构体 这个结构体的字段可以没有变量的名字 只有类型 这些字段被称作是匿名字段 .........【阅读全文】

阅读(1799) | 评论(0) | 转发(0)

发布时间:2013-02-02 15:00:19

GOPATH and workspacesOne of Go's design goals is to make writing software easier. To that end, the go command doesn't use Makefiles or other configuration files to guide program construction. Instead, it uses the source code to find dependencies and determine build conditions. T.........【阅读全文】

阅读(7652) | 评论(0) | 转发(1)

发布时间:2013-02-02 10:44:26

这章节主要讲的是go中函数使用 在做习题过程中碰到的几个比较值得纪念的问题是 定义了命名返回函数 但是没有把它放在括号里面 结果一直编译通不过 但是一眼看过去还是不知道怎么错了A还有一个给我深刻印象的就是go的强类型检查 以及变量的申明方式 和c/c++区别比较明显的就是定义array 之前好像看过c/c++中的指针.........【阅读全文】

阅读(2155) | 评论(0) | 转发(0)

发布时间:2013-02-01 23:26:39

package mainimport ( "fmt" "strings")func main() { /* for i := 1; i<=100; i++ { fmt.Println(strings.Repeat("A", i)) } for i := 1; i<=100; i++ { switch { case i%3==0 && i%5==0 : .........【阅读全文】

阅读(1814) | 评论(0) | 转发(0)

发布时间:2013-01-30 12:07:29

暂时停止对mongodb的性能测试 因为前端做负载均衡的nginx性能提升不上去 由于经费 还有目前测试条件的限制 我们做的性能测试都是在KVM虚拟机里搭建的环境 nginx1.2.6 测试工具就是apache benchmark(ab) 操作系统是centos5.4(好老啊)测试准备: 主要是内核参数调优 常见的dmesg信息就是‘TCP: time wai.........【阅读全文】

阅读(2486) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册