参照
http://studygolang.com/articles/5499
https://github.com/polaris1119/The-Golang-Standard-Library-by-Example/blob/master/chapter09/09.1.md
测试例子:
测试单个文件go test -v chaincode_example02_test.go chaincode_example02.go
测试单个方法
go test -v -test.run TestExample02_Query
------------------------------------------------------------------------------------------------------------------------------------------------------------
使用golang进行证书签发和双向认证
http://studygolang.com/articles/9959
build的使用方法
http://www.jb51.net/article/56781.htm
_test后缀在Go语言中有着特殊含义,是用来给Go程序做测试的,build工具会忽略它们,它们会运行 go test。从文件名中删除_test,或者重命名就可以解决这个问题
出现command-line-arguments的原因
http://wiki.jikexueyuan.com/project/go-command-tutorial/0.7.html
-------------------------------------------------------------------------------------------------------------------------------------------------------------