原文地址:Part 1: Introduction and Installation
原文作者:Naveen R
译者:jacsice 转载请注明出处。更多进阶译文请查看咔叽咔叽

这是golang入门系列里面的第一篇。

什么是 Golang

Go 就是Golang

is an open source, compiled and statically typed programming language created by google.

The primary focus of Golang is to make the development of highly available and scalable web apps simple and easy.

是google创造的开源的,可编译的,静态类型的编程语言。

Golang的主要关注点在于使开发高可用的,可扩展的web apps简单便捷。

Why Golang

Why would you choose Golang as your service side programming language when there are tonnes of other languages such as python, ruby, nodejs... that do the same job.

Here are some of the pros which I found in choosing Go

  • Concurrency is an inherent part of the language. As a result writing multithreaded programs is a piece of cake. This is achieved by Goroutines and channels which we will discuss later in the upcoming tutorials.
  • 并发是该语音与生俱来的部分。使得写多线程的程序小菜一碟。这些是通过goroutines和channels完成的。
  • Golang is a compiled language. The source code is compiled to native binary. This is missing in interpreted languages such as JavaScript used in nodejs.
  • Golang是一种编译语言。源代码被编译为二进制文件。在诸如nodejs中使用的JavaScript之类的解释语言中缺少此功能。
  • The language spec is pretty simple. The entire spec fits in a page and you can even use it to write your own compiler :)
  • 语言的规范非常简单。全部的规范都在这一个页面里面,你甚至可以用它来当做你的编译器。
  • The go compiler supports static linking. All the go code can be statically linked into one big fat binary and it can be deployed in cloud servers easily without worrying about dependencies.
  • go编译器支持静态链接。所有go代码都可以静态链接到一个大的二进制文件中,并且可以轻松地部署在云服务器中,而不必担心依赖性。

Installation

Golang is supported on all the three platforms Mac, Windows and Linux. You can download the binary for the corresponding platform from golang.org/dl/

Mac OS

Download the OS X installer from golang.org/dl/. Double tap to start the installation. Follow the prompts and this should have Golang installed in

/usr/local/go

and would have also added the folder

/usr/local/go/bin

to your PATH environment variable.

Windows

Download the MSI installer from golang.org/dl/. Double tap to start the installation and follow the prompts. This will install Golang in location

c:\Go

and will also add the directory

c:\Go\bin

to your path environment variable.

Linux

Download the tar file from golang.org/dl/ and unzip it to /usr/local.

Add /usr/local/go/bin to the PATH environment variable. This should install go in linux.

转载于:https://juejin.im/post/5cac11d5e51d456e55623aca

【译】Part 1: 介绍和安装相关推荐

  1. Scrapy-Splash的介绍、安装以及实例

    scrapy-splash的介绍   在前面的博客中,我们已经见识到了Scrapy的强大之处.但是,Scrapy也有其不足之处,即Scrapy没有JS engine, 因此它无法爬取JavaScrip ...

  2. Springlake-01 介绍功能安装

    Springlake-01 介绍&功能&安装 1. 简介与功能 1)Springlake 是一个企业内容平台SECP 2)是一个可配置的系统,80%内容可以配置 3)允许建立和配置垂直 ...

  3. Kafka系列一之架构介绍和安装

    Kafka架构介绍和安装 写在前面 还是那句话,当你学习一个新的东西之前,你总得知道这个东西是什么?这个东西可以用来做什么?然后你才会去学习它,使用它.简单来说,kafka既是一个消息队列,如今,它也 ...

  4. SharpWebMail介绍和安装(转)

    SharpWebMail介绍和安装 什么是:SharpWebMail SharpWebMail是一款C#开发的基于WEB应用程序的多语言的WEB邮件服务.它允许我们使用SMTP或IMAP服务来完成发送 ...

  5. Linux系统Vi/Vim编辑器的简单介绍、安装/卸载、常用命令

    Linux系统Vi/Vim编辑器的简单介绍.安装/卸载.常用命令 1.介绍 vi(Visual Interface)编辑器是Linux和Unix上最基本的文本编辑器,工作在字符模式下.由于不需要图形界 ...

  6. Storm介绍及安装部署

    本节内容: Apache Storm是什么 Apache Storm核心概念 Storm原理架构 Storm集群安装部署 启动storm ui.Nimbus和Supervisor 一.Apache S ...

  7. LNMP基础架构介绍与安装

    1.LNMP架构介绍 LNMP==Linux+Nginx+Mysql+PHP  nginx:省资源,省cpu,所以在高并发时能够处理更多的请求,高端能达到3万到5万的并发量.  nginx和LAMP不 ...

  8. 2.1 DNS服务介绍和安装

    DNS服务介绍和安装 一 DNS概述 通过为每台主机建立IP地址与域名之间的映射关系,用户可以避开难记的IP地址,而是用域名就可以访问网络中的站点:即平常我们上网输入的都是域名,www.baidu.c ...

  9. openresty开发系列10--openresty的简单介绍及安装

    openresty开发系列10--openresty的简单介绍及安装 一.Nginx优点 十几年前,互联网没有这么火,软件外包开发,信息化建设,帮助企业做无纸化办公,收银系统,工厂erp,c/s架构偏 ...

  10. gitlab介绍、安装及gitlab CI、与jenkins的对比

    gitlab介绍.安装及gitlab CI.与jenkins的对比

最新文章

  1. 逻辑地址、线性地址、物理地址和虚拟地址
  2. DCGAN in Tensorflow生成动漫人物
  3. bread是可数还是不可数_凡是规则,皆有例外——规则的可数名词复数,真的规则吗?...
  4. 面向.NET开发人员的Dapr——服务调用
  5. MySQL 函数 —— GROUP_CONCAT
  6. 美国住宅保修公司新增支持加密货币支付,并决定将 BTC 列入资产负债表
  7. Python网页抓取
  8. 用服务器日志监控软件、服务器日志分析工具软件教你如何查看服务器日志?
  9. C/C++基础编程基础专项题库
  10. php 百望电子发票,百望云电子发票服务平台开票工具
  11. 微信小程序-样式-引入
  12. 零基础如何学习计算机语言
  13. 怎么上传云班课的计算机作业,云班课怎么交作业_云班课作业提交教程_3DM手游...
  14. 基于ESP32的TCP服务器
  15. 弘辽科技:618年中大决战,拖词拖价法快速玩转淘宝直通车
  16. iOS 直播类APP开发流程
  17. C语言练习——提高篇
  18. 数字集成电路设计-12-状态机的四种写法
  19. 美国大学计算机专业排名2014,2014USNews美国大学本科计算机专业排名
  20. Deploying Kylix 3 Applications

热门文章

  1. 计算机系应用,近距离看专业 计算机专业应用篇
  2. mysql 主从热备份 5.6 参数_MySQL主从热备份
  3. Python05 梯形公式 Simpson公式 Cotes公式 Romber公式(附代码)
  4. Python中GIL(全局解释器锁)
  5. printf输出字符串_c语言入门 第十二章 字符串
  6. 计算机辅助设计试题 李明,计算机辅助设计B李明及答案.doc
  7. MAT(Memory Analyzer Tool)工具入门介绍
  8. Spring Boot基础学习笔记09:Thymeleaf模板引擎
  9. VB讲课笔记05:数据输入输出
  10. Python案例:按键测试