当前位置:网站首页>Go notes (1) go language introduction and characteristics
Go notes (1) go language introduction and characteristics
2022-07-04 20:48:00 【fiveym】
1. Go The origin of language
Go Language is also called Golang Language , It's Google Goggle The company to launch .
Traditional languages such as c++, People spend too much time learning how to use the language ,
Rather than how to better express the writer's thoughts , Compile at the same time
It takes too long , For writing - compile - The cycle is too long to run this chain .
Dynamic languages such as Python, Since there are no strongly typed constraints , Many problems need to be found at run time ,
This low-level error should be left to the compiler to find . therefore Go The birth of .
2. Go Characteristics of language
Go Language ensures the security and performance of statically compiled languages , It also achieves the speed and maintainability of dynamic language development ,
It's been described Go Language : Go = C + Python , explain Go Language has both C The speed of static language programs , It can reach Python The rapid development of dynamic language .Go The languages are as follows
characteristic :
1. Automatic garbage collection
C/C++ The biggest headache is the pointer problem , If you are not careful, the pointer will go wild or cross the boundary again . stay Go Don't worry about language anymore , Don't worry delete or person free, The system will automatically recycle .
2. Function can return multiple values
This is amazing , Most languages can only return one value ,Go Languages can return multiple values . This function makes developers no longer have to think hard
How to return value design , There is no need to define a structure for value transfer .
3. Concurrent programming
Go Language is naturally concurrent , Just the keywords “go” You can make the function execute concurrently , Make concurrent programming easier , This is also Go The biggest advantage of language
potential .
4. No dependence on hell , Even glibc
5. Compile once , Copy anywhere , Deployment is extremely convenient
边栏推荐
- 长城证券开户安全吗 股票开户流程网上开户
- Implementation of redis distributed lock
- E-week finance | Q1 the number of active people in the insurance industry was 86.8867 million, and the licenses of 19 Payment institutions were cancelled
- go笔记(1)go语言介绍以及特点
- LeetCode 871. Minimum refueling times
- How does win11 search for wireless displays? Win11 method of finding wireless display device
- LeetCode 7. 整数反转
- The problem of the maximum difference between the left and right maxima
- After inserting a picture into word, there is a blank line above the picture, and the layout changes after deletion
- MySQL中的日期时间类型与格式化方式
猜你喜欢

看腾讯大老如何做接口自动化测试
![NLP, vision, chip What is the development direction of AI? Release of the outlook report of Qingyuan Association [download attached]](/img/79/82763392e74d102921b4e8e601d4c6.png)
NLP, vision, chip What is the development direction of AI? Release of the outlook report of Qingyuan Association [download attached]

针对深度学习的“失忆症”,科学家提出基于相似性加权交错学习,登上PNAS

Qt编写物联网管理平台38-多种数据库支持

工厂从自动化到数字孪生,图扑能干什么?

分析伦敦银走势图的技巧

FS4061A升压8.4V充电IC芯片和FS4061B升压12.6V充电IC芯片规格书datasheet

So this is the BGP agreement

Ziguang zhanrui completed the first 5g R17 IOT NTN satellite on the Internet of things in the world

What if the win11 shared file cannot be opened? The solution of win11 shared file cannot be opened
随机推荐
Win11U盘拒绝访问怎么办?Win11U盘拒绝访问的有效解决方法
NLP, vision, chip What is the development direction of AI? Release of the outlook report of Qingyuan Association [download attached]
QT writing the Internet of things management platform 38- multiple database support
FS4061A升压8.4V充电IC芯片和FS4061B升压12.6V充电IC芯片规格书datasheet
Automatic insertion of captions in word
工厂从自动化到数字孪生,图扑能干什么?
Flet教程之 06 TextButton基础入门(教程含源码)
分析伦敦银走势图的技巧
GVM使用
BFC面试简述
电脑页面不能全屏怎么办?Win11页面不能全屏的解决方法
漫谈客户端存储技术之Cookie篇
Flet tutorial 05 outlinedbutton basic introduction (tutorial includes source code)
Qt五子棋人机对战画棋子之QPainter的使用误区总结
【ISMB2022教程】图表示学习的精准医疗,哈佛大学Marinka Zitnik主讲,附87页ppt
Win11共享文件打不开怎么办?Win11共享文件打不开的解决方法
哈希(Hash)竞猜游戏系统开发功能分析及源码
Cdga | six principles that data governance has to adhere to
ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声
电脑共享打印机拒绝访问要怎么办