Go语言入门系列1:安装,How to Write Go Code
2017-06-30 10:36
399 查看
https://golang.org/doc/code.htmlsrc contains Go source files,pkg contains package objects, andbin contains executable commands.The go tool builds source packages and installs the resulting binaries to the pkg and bin directories.需要先设置:The GOPATH specifies the location of your workspace. GOPATH must not be the same path as your Go installation.安装下载https://golang.org/dl/如 https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gztar -C /usr/local/ -xzf go1.8.3.linux-amd64.tar.gzexport PATH=$PATH:/usr/local/go/bin GOROOT must be set when installing to a custom location. 所以最好安装在/usr/local目录下为什么要使用 Go 语言?Go 语言的优势在哪里?部署简单。我发现我花了四年时间锤炼自己用 C 语言构建系统的能力,试图找到一个规范,可以更好的编写软件。结果发现只是对 Go 的模仿。缺乏语言层面的支持,只能是一个拙劣的模仿。对于大多数后台应用场景,选择Golang是极为明智的选择。 如果你是C爱好者,强烈建议你学习和使用Go。Go可以调用C/C++程序你用来学89个C++高级特性的时间,估计已经用Go写了64个开源项目了。
相关文章推荐
- Go语言入门系列1:安装,How to Write Go Code
- How to Write Go Code
- How to Write Go Code
- 如何编写Go 代码 {How to Write Go Code}
- 如何写 go 代码 (How to Write Go Code 翻译)
- All-In-One Code Framework(AIO): 如何使用C#编写进程外的COM组件 (How to write an out-of-proc COM server in C#)
- How to write the fast code/ high performance in C#
- How to write custom static code analysis rules and integrate them into Visual Studio 2010
- Untangling Spaghetti Code: How to Write Maintainable JavaScript
- How to write perfect C code
- How to Write High-Performance C# Code
- How to Write High-Performance C# Code
- Makefile新手入门:How to write Makefile
- EPLAN API 入门系列- 提高篇(How to Add/Remove GraphicalLayer?)
- how to write aw-some jquery code
- C++ Portability Guide (How to write portable code)
- How to write Assembly code for the iPhone:
- go语言入门-安装-编写-运行
- EPLAN API 入门系列- 提高篇(How to get all connections which are not in location box)
- How to write fast code