摘要: cannot define new methods on non-local type int 参考资料: http://wiki.jikexueyuan.com/project/the-way-to-go/10.6.html http://stackoverflow.com/questions/2 阅读全文
posted @ 2016-12-21 19:01 junneyang 阅读(1011) 评论(0) 推荐(0) 编辑
摘要: 参考资料:http://cgs1999.iteye.com/blog/1596671 1 案例描述 某日,在JavaEye上看到一道面试题,题目是这样的:请对以下的代码进行优化 Java代码 for (int i = 0; i < 1000; i++) for (int j = 0; j < 100 阅读全文
posted @ 2016-12-21 15:51 junneyang 阅读(1503) 评论(0) 推荐(0) 编辑
摘要: read -rsp $'Press enter to continue...\n' 参考资料: 参考资料: http://stackoverflow.com/questions/92802/what-is-the-linux-equivalent-to-dos-pause https://zhida 阅读全文
posted @ 2016-12-21 13:16 junneyang 阅读(379) 评论(0) 推荐(0) 编辑
摘要: Gox 是一个简单的,不花俏的Go平台交叉编译工具,它的用处就和标准的 go build 一样。Gox 会并行地为多种平台编译。Gox 同时也提供了一套交叉编译工具链。 Gox 项目地址:https://github.com/mitchellh/gox 安装 为了安装 Gox,请使用 go get。 阅读全文
posted @ 2016-12-21 11:41 junneyang 阅读(2787) 评论(0) 推荐(0) 编辑