当前位置:网站首页>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
边栏推荐
- DVWA之暴力破解(Brute Force)Low-->high
- 一篇博客让你学会在vscode上编写markdown
- Qt界面优化:Qt去边框与窗体圆角化
- 详解TCP的三次握手
- AT89C52 MCU frequency meter (1Hz ~ 20MHz) design, LCD1602 display, including simulation, schematic diagram, PCB and code, etc
- 51单片机+LCD12864液晶显示的俄罗斯方块游戏,Proteus仿真、AD原理图、代码、论文等
- 电容
- 交通灯系统51单片机设计(附Proteus仿真、C程序、原理图及PCB、论文等全套资料)
- 51 MCU + LCD12864 LCD Tetris game, proteus simulation, ad schematic diagram, code, thesis, etc
- 线程同步、生命周期
猜你喜欢
【无标题】
关于在vs中使用scanf不安全的问题
Want to be an architect? Tamping the foundation is the most important
Electronic perpetual calendar of DS1302_ 51 single chip microcomputer, month, day, week, hour, minute and second, lunar calendar and temperature, with alarm clock and complete set of data
【Servlet】Servlet 详解(使用+原理)
On the insecurity of using scanf in VS
Using MATLAB programming to realize the steepest descent method to solve unconstrained optimization problems
8.2 文本预处理
阿里研发三面,面试官一套组合拳让我当场懵逼
Multisim Simulation Design of DC adjustable regulated power supply of LM317 (with simulation + paper + reference)
随机推荐
Upgrade of openssh and modification of version number
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)
C语言知识点精细详解——数据类型和变量【1】——进位计数制
编程哲学——自动加载、依赖注入与控制反转
51 MCU flowers, farmland automatic irrigation system development, proteus simulation, schematic diagram and C code
SVN详细使用教程
交通灯系统51单片机设计(附Proteus仿真、C程序、原理图及PCB、论文等全套资料)
如何5分钟上手使用OCR
Parameter stack pressing problem of C language in structure parameter transmission
1N5408-ASEMI整流二极管1N5408
科技的成就(二十一)
成都控制板设计提供_算是详细了_单片机程序头文件的定义、编写及引用介绍
QT actual combat: Yunxi chat room
Eight way responder system 51 Single Chip Microcomputer Design [with Proteus simulation, C program, schematic diagram, PCB files, component list and papers, etc.]
三、梯度下降求解最小θ
【NLP】HMM隐马尔可夫+维特比分词
AT89C52单片机的频率计(1HZ~20MHZ)设计,LCD1602显示,含仿真、原理图、PCB与代码等
Usage of BC
一款不错的工具:aardio
OC 转 Swift 条件编译、标记、宏、 Log、 版本检测、过期提示