当前位置:网站首页>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
边栏推荐
- Qt界面优化:Qt去边框与窗体圆角化
- Eight way responder system 51 Single Chip Microcomputer Design [with Proteus simulation, C program, schematic diagram, PCB files, component list and papers, etc.]
- QT interface optimization: QT border removal and form rounding
- Qt实战:云曦日历篇
- The art of automation
- QT actual combat: Yunxi chat room
- C语言知识点精细详解——初识C语言【1】
- Multisim Simulation Design of DC adjustable regulated power supply of LM317 (with simulation + paper + reference)
- DS1302的电子万年历_51单片机,年月日、星期、时分秒、农历和温度,带闹钟,全套资料
- 数组模拟队列进阶版本——环形队列(真正意义上的排队)
猜你喜欢
TLC5615 based multi-channel adjustable CNC DC regulated power supply, 51 single chip microcomputer, including proteus simulation and C code
Electronic scale weighing system design, hx711 pressure sensor, 51 single chip microcomputer (proteus simulation, C program, schematic diagram, thesis and other complete data)
一个月把字节,腾讯,阿里都面了,写点面经总结……
Branch statement of process control
QT actual combat: Yunxi chat room
C语言知识点精细详解——初识C语言【1】
PWM speed regulation control system of DC motor based on 51 single chip microcomputer (with complete set of data such as Proteus simulation + C program)
八路抢答器系统51单片机设计【附Proteus仿真、C程序、原理图及PCB文件、元器件清单和论文等】
555定时器+74系列芯片搭建八路抢答器,30s倒计时,附Proteus仿真等
ASEMI三相整流桥和单相整流桥的详细对比
随机推荐
Qt界面优化:Qt去边框与窗体圆角化
raised exception class EAccexxViolation with ‘Access violation at address 45EFD5 in module 出错
外包幹了四年,廢了...
利用 MATLAB 编程实现最速下降法求解无约束最优化问题
【STC8G2K64S4】比较器介绍以及比较器掉电检测示例程序
Qt界面优化:鼠标双击特效
想要成为架构师?夯实基础最重要
Four ways of SSH restricting login
AT89C52 MCU frequency meter (1Hz ~ 20MHz) design, LCD1602 display, including simulation, schematic diagram, PCB and code, etc
Want to be an architect? Tamping the foundation is the most important
qt之.pro文件详解
2-Go变量操作
单片机的函数信号发生器,输出4种波形,频率可调,原理图,仿真和C程序
MCU function signal generator, output four kinds of waveforms, adjustable frequency, schematic diagram, simulation and C program
[detailed explanation of factory mode] factory method mode
SVN详细使用教程
8.4 循环神经网络从零实现
51单片机的直流电机PWM调速控制系统(附Proteus仿真+C程序等全套资料)
1分钟看懂执行流程,永久掌握for循环(附for循环案例)
流程控制之分支语句