摘要:
Go 语言相比Java等一个很大的优势就是可以方便地编写并发程序。Go 语言内置了 goroutine 机制,使用goroutine可以快速地开发并发程序, 更好的利用多核处理器资源。这篇文章学习 gorouti... 阅读全文
posted @ 2019-11-06 19:02
jadeshu
阅读(196)
评论(0)
推荐(0)
摘要:
package mainimport ( "bufio" "fmt" "os")func main() { // 新建文件 file, e := os.Create("ceshi.txt") if e != ni... 阅读全文
posted @ 2019-11-06 02:21
jadeshu
阅读(204)
评论(0)
推荐(0)
摘要:
1.erro(一般错误)package mainimport ( "errors" "fmt")func div(a, b int) (res int) { if b == 0 { err := errors.... 阅读全文
posted @ 2019-11-06 00:57
jadeshu
阅读(95)
评论(0)
推荐(0)

浙公网安备 33010602011771号