摘要: 一、垃圾回收 1、内存自动回收。 2、只需要创建,不需要释放 二、天然并发: 1、语言层支持并发,对比python,少了GIL锁。 2、goroute,轻量级线程。 3、基于CSP模型实现 三、channel管道 1、管道,类似unix/linux中的pipe 2、多个goroute之间通过chan 阅读全文
posted @ 2018-07-17 17:33 liubiaos 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 一、安装: 1、下载GO的地址:https://golang.org/dl/ 点击安装包进行安装(linux直接解压) 设置环境变量(linux) 1. export GOROOT=$PATH:/path/to/go/ 2. export PATH=$PATH:$GOROOT/bin/ 3. exp 阅读全文
posted @ 2018-07-17 17:13 liubiaos 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 目录 0、官方教程 https://tour.go-zh.org/basics/1 1、安装调试 2、简单介绍 阅读全文
posted @ 2018-07-17 10:02 liubiaos 阅读(144) 评论(0) 推荐(0) 编辑