当前位置:网站首页>1 - first knowledge of go language
1 - first knowledge of go language
2022-04-23 14:40:00 【Endless character】
Catalog
One 、Go Introduction to language
- What is? Go Language :Go Is an open source programming language , It's meant to make it easy for people to build simple 、 reliable 、 Efficient software
- Go Language advantage
- ①. Fast running speed , Easy to learn
- ②. High salary
- ③. Suitable for blockchain development
- ④. Cross platform
- ⑤. Rich library of standards ( Instructions ),Go There are a lot of libraries built in , Especially the network library is very powerful
- ⑥.Go It can also directly contain C Code , Take advantage of the existing rich C library
- ⑦. Language level supports concurrency , This is Go The biggest feature , Born to support concurrency
- What is concurrency : All running programs take turns CPU, Each program is allowed to occupy CPU The time is very short ( such as 10 millisecond ), So the user doesn't feel it at all CPU Is serving multiple programs in turn , It's like all programs are running continuously . The advantage of concurrency is that you can run multiple programs , Not Caton
Two 、Go Environmental installation
- Go Installation package download address :https://golang.google.cn/dl/
- There were 32 Bit and 64 Bit installation package , Recommended download .msi Installation package for installation
- Go install : function msi The installation files , Never appear Chinese in the installation path , All the way Next
- GOPATH To configure : What will be written Go Program code method GOPATH Under the specified directory
- Go Install the test :cmd Command test
- go version: Output version
- go env: environmental information
3、 ... and 、 first Go Program
- compile Go Code :
go build file name .go
What will be written Go Compile the code into a computer executable file - function exe Program :
.\Test.exe
- Direct operation Go The source code file :
go run file name .go
Will not generate exe file
package main
import "fmt"
func main(){
fmt.Print("Hello Go")
}
Four 、IDE-Goland
- Goland Download address :https://www.jetbrains.com/zh-cn/go/download/other.html
- According to your system , When the download is complete , All the way next Can be installed
- According to your system , When the download is complete , All the way next Can be installed
5、 ... and 、Go notes
- Single-line comments : grammar
//
, Shortcut key -> CTRL+/ - Multiline comment : grammar
/* */
, Shortcut key -> CTRL+ SHFIT +/
版权声明
本文为[Endless character]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231437071018.html
边栏推荐
- Want to be an architect? Tamping the foundation is the most important
- L'externalisation a duré quatre ans.
- 一篇博客让你学会在vscode上编写markdown
- 8.2 文本预处理
- 电子秤称重系统设计,HX711压力传感器,51单片机(Proteus仿真、C程序、原理图、论文等全套资料)
- 八路抢答器系统51单片机设计【附Proteus仿真、C程序、原理图及PCB文件、元器件清单和论文等】
- 抑郁症治疗的进展
- Arduino for esp8266串口功能简介
- 基于TLC5615的多路可调数控直流稳压电源,51单片机,含Proteus仿真和C代码等
- 【Proteus仿真】自动量程(范围<10V)切换数字电压表
猜你喜欢
On the insecurity of using scanf in VS
qt之.pro文件详解
PCIe X1 插槽的主要用途是什么?
C语言知识点精细详解——数据类型和变量【2】——整型变量与常量【1】
AT89C52 MCU frequency meter (1Hz ~ 20MHz) design, LCD1602 display, including simulation, schematic diagram, PCB and code, etc
MDS55-16-ASEMI整流模块MDS55-16
抑郁症治疗的进展
Proteus simulation design of DC adjustable regulated power supply (with simulation + paper and other data)
循环队列的基本操作,你学会了吗?
Mq-2 and DS18B20 fire temperature smoke alarm system design, 51 single chip microcomputer, with simulation, C code, schematic diagram, PCB, etc
随机推荐
51 MCU + LCD12864 LCD Tetris game, proteus simulation, ad schematic diagram, code, thesis, etc
单相交交变频器的Matlab Simulink建模设计,附Matlab仿真、PPT和论文等资料
AT89C52 MCU frequency meter (1Hz ~ 20MHz) design, LCD1602 display, including simulation, schematic diagram, PCB and code, etc
机器学习之逻辑回归(Logistic Regression)原理讲解和实例应用,果断收藏
555 timer + 74 series chip to build eight way responder, 30s countdown, proteus simulation, etc
OC 转 Swift 条件编译、标记、宏、 Log、 版本检测、过期提示
Eight way responder system 51 Single Chip Microcomputer Design [with Proteus simulation, C program, schematic diagram, PCB files, component list and papers, etc.]
DS1302的电子万年历_51单片机,年月日、星期、时分秒、农历和温度,带闹钟,全套资料
八路抢答器系统51单片机设计【附Proteus仿真、C程序、原理图及PCB文件、元器件清单和论文等】
分分钟掌握---三目运算符(三元运算符)
The initial C language framework is suitable for review and preliminary understanding
Unity_代码方式添加绑定按钮点击事件
SVN详细使用教程
Raised exception class eaccexviolation with 'access violation at address 45efd5 in module error
ArrayList集合基本使用
51单片机+LCD12864液晶显示的俄罗斯方块游戏,Proteus仿真、AD原理图、代码、论文等
QT interface optimization: QT border removal and form rounding
爬虫练习题(一)
LLVM - 生成局部变量
51 Single Chip Microcomputer Design of traffic light system (with Proteus simulation, C program, schematic diagram, PCB, thesis and other complete data)