07 2015 档案

摘要:go 语言中的结构体方法结构体名称的大小写有着不同的意义: 小写表示不能被别的包访问package mainimport "fmt"type Rect struct { width,height int}func (r *Rect) area() int { return r.width*r.hei... 阅读全文
posted @ 2015-07-10 10:57 witwave 阅读(412) 评论(0) 推荐(0)
摘要://从文件中提取文件指从x行到y行的内容 //awk -v start=5 -v end=10 -F "\x01" '{if(NR>=start && NR=start && NR<=end) print $0}' "; console.log(" the awk: " + cmd);... 阅读全文
posted @ 2015-07-09 16:49 witwave 阅读(684) 评论(0) 推荐(0)