摘要: 使用方法: 提交:cd ${GOPATH}/src/github.com/junneyang/xcloudgodep save -v ./...rm -rf vendor/git checkout --force git initgit pull https://github.com/junneya 阅读全文
posted @ 2016-11-21 11:59 junneyang 阅读(417) 评论(0) 推荐(0) 编辑
摘要: go处理错误的另一种方式 go处理错误常见的方式是 err := funcReturningError() if err != nil { // 处理错误 } 然而因为过于繁琐而饱受诟病。下文简述另一种处理错误的写法。 这种写法最初我是从标准库里看到的,代码在 https://github.com/ 阅读全文
posted @ 2016-11-21 10:48 junneyang 阅读(875) 评论(0) 推荐(0) 编辑
摘要: The Go Blog Errors are values 12 January 2015 A common point of discussion among Go programmers, especially those new to the language, is how to handl 阅读全文
posted @ 2016-11-21 10:12 junneyang 阅读(1003) 评论(0) 推荐(0) 编辑