摘要:
唉,只能说C程序员可以接受go的错误设计,相比java来说这个设计真的很差劲! 我认为知乎上说的比较中肯的: 1. The key lesson, however, is that errors are values and the full power of the Go programming 阅读全文
posted @ 2016-11-18 18:53
junneyang
阅读(3071)
评论(0)
推荐(0)
摘要:
结论: The source command is only available in bash, and the supervisor command is run by sh. I would recommend using a script to perform your commands 代 阅读全文
posted @ 2016-11-18 16:53
junneyang
阅读(6080)
评论(0)
推荐(0)
摘要:
代码示例 输出结果: 函数当做值和类型在我们写一些通用接口的时候非常有用,通过上面例子我们看到testInt这个类型是一个函数类型,然后两个filter函数的参数和返回值与testInt类型是一样的,但是我们可以实现很多种的逻辑,这样使得我们的程序变得非常的灵活。 阅读全文
posted @ 2016-11-18 11:41
junneyang
阅读(1323)
评论(0)
推荐(0)
摘要:
结论: 参考资料: https://groups.google.com/forum/#!topic/golang-nuts/LA-cTnKY3cw https://play.golang.org/p/bVP5wPCcQ2 阅读全文
posted @ 2016-11-18 10:57
junneyang
阅读(874)
评论(0)
推荐(0)

浙公网安备 33010602011771号