emberjs
官方地址: http://emberjs.com/
简介: A FRAMEWORK FOR CREATING AMBITIOUS WEB APPLICATIONS.
你见过这样的script吗?
感想:
有想法并且去实现了,就是好的
groupcache相关资料
- https://github.com/golang/groupcache
- http://geek.csdn.net/news/detail/1974
- http://capotej.com/
- https://github.com/capotej/groupcache-db-experiment [√]
go 安装第三方包
参考: https://code.google.com/p/go-wiki/wiki/GoGetTools
Installing Version Control Tools for go get
The go get fetching of source code is done by using one of the following tools expected to be found on your system:
- svn – Subversion, download at: http://subversion.apache.org/packages.html
- hg – Mercurial, download at http://mercurial.selenic.com/wiki/Download
- git – Git, download at http://git-scm.com/downloads
- bzr – Bazaar, download at http://wiki.bazaar.canonical.com/Download
Refer GoGetProxyConfig for setting proxies for these tools.
如: 安装 code.google.com/p/goprotobuf/proto :
go get code.google.com/p/goprotobuf/proto
但是,这里需要hg这个命令,可以使用yum安装:
yum install *mercurial*
而对于github上的go包,需要先安装git,然后使用go get, 例如:
go get github.com/golang/groupcache
代码会自动安装在GOPATH 下的src目录中
补充说明:(其实这个写在前面更好)
go get是可以自动管理依赖的,比如,上面的groupcache以来proto,如果先安装hg这个命令的话,直接安装groupcache时,是可以自动安装proto的; 不过如果不太幸运的话,有些包会安装失败的,下图就是一个例子:
GO语言资料
Go语言: 互联网时代的C
sqlmap 工具检查sql注入漏洞
工具下载地址: http://sqlmap.org/
工具使用:
./sqlmap.py -u ‘your url’
示例:
./sqlmap.py -u ‘http://test.phpor.net/sql_inject.php?id=1’
结果显示:
Go语言对Android原生应用开发的支持情况
http://blog.jobbole.com/73125/
GO语言目录结构
参考文档: http://blog.studygolang.com/tag/directory/
- gopath 下三个目录
- bin目录需要通过 $GOBIN 环境变量指定后使用
- src目录是源文件目录
- pkg目录是编译后的 .a 文件,不是放源文件的
- 关于包目录、包名、文件名的含义: 对于 phpor/test/first.go ,其中:
- phpor是包的目录名,import时,需要使用 import “phpor/test”
- test 是包名, 如果first.go中有function hello(); 则,调用方式为: test.hello()
- test目录中可以包含子目录和second.go
- 对于test目录下的所有的 *.go 在编译后,会在pkg/phpor目录生成 test.a
- 如果test目录中有一个目录 xxx, 则,xxx 下面的文件编译后会生成 pkg/phpor/test/xxx.a
- first.go 可以随便命名,只是第一行必须为: package test
GO语言最佳实践: http://blog.jobbole.com/44608/
视频资料: http://vimeo.com/69237265
通过jsfiddle练习遮罩的实现
通过jsfiddle练习遮罩的实现
go channel
疑问
go 的channel和os的pipe是不是很像?你们go的channel是通过pipe来实现的吗? 答曰: 不是
pipe是用啥实现的channel就是用啥来实现的?