现在开始接触Go一段时间了,基本路径就是看基础学习材料,开始写项目,有问题找解决问题的方法。这里记录一下学习过程。

go相关文章

Golang 支持在一个平台下生成另一个平台可执行程序的交叉编译功能。

1、Mac下编译Linux, Windows平台的64位可执行程序:
$ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build test.go
$ CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build test.go
2、Linux下编译Mac, Windows平台的64位可执行程序:
$ CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build test.go
$ CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build test.go
3、Windows下编译Mac, Linux平台的64位可执行程序:
$ SET CGO_ENABLED=0SET GOOS=darwin3 SET GOARCH=amd64 go build test.go
$ SET CGO_ENABLED=0 SET GOOS=linux SET GOARCH=amd64 go build test.go

go基础学习材料

GO学习路径—系统包

1. flag包

After all flags are defined, call
flag.Parse()
to parse the command line into the defined flags.

2. sync包

  • 参考:锁和 sync 包
  • 参考:协程(goroutine)与通道(channel)
  • A WaitGroup waits for a collection of goroutines to finish. The main goroutine calls Add to set the number of goroutines to wait for. Then each of the goroutines runs and calls Done when finished. At the same time, Wait can be used to block until all goroutines have finished.

GO学习路径—第三方开发包

1. glog日志包

  • Leveled execution logs for Go.
  • 官网:https://code.google.com/p/google-glog/
  • The repository contains an open source version of the log package

    used inside Google. The master copy of the source lives inside

    Google, not here.

2. goconfig配置文件工具包

最新文章

  1. jq不包含某属性
  2. 32位的Win7系统下安装64位的Sql Sever?
  3. xampp使用phpunit
  4. iphone,pad等真机不被xcode识别,解决方法
  5. MyEclipse8.5快速搭建SSH框架
  6. PHP字符串函数之 strstr stristr strchr strrchr
  7. C#Winfrom中,窗体加载时会自动执行一次控件的textchange事件,怎么让它不执行?
  8. 網站SSL加密原理簡介(2张图,握手有9个步骤,解释的很清楚)
  9. 自增运算a++和++b(1)
  10. Python使用心得之魔法参数**kw
  11. ViewPagerWithImageDemo【ViewPager如何判断滑动到第一页和最后一页以及弹出对话框功能】
  12. Java学习之软件安装
  13. 前端-JavaScript2-1——JavaScript基础复习及上次作业答案
  14. ubuntu开机自动运行用Qt写的程序
  15. PAT L2-011 玩转二叉树
  16. python day14--内置函数二
  17. Sql中判断"数据库"、"表"、"临时表"、"存储过程"和列"是否存在
  18. git clone 某个分支或者所有分支
  19. CSS块级元素与行内元素
  20. Asp.Net MVC以JSON传值扩展方法

热门文章

  1. Leetcode题 257. Binary Tree Paths
  2. 按比例吃CPU
  3. RK3288 st7703 mipi屏指令过长,程序跑飞
  4. Java-编程规范与代码风格
  5. java内存空间简述
  6. Flex 布局的最简单表单
  7. connections java.net.BindException: Address already in use_解决方案
  8. json简单案例
  9. 123457123456#0#-----com.threeapp.headsoccer----宝宝头球大战
  10. IDEA中提示Error:java: Compilation failed: internal java compiler error