当前位置:网站首页>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
边栏推荐
- Win11亮度被锁定怎么办?Win11亮度被锁定的解决方法
- Lingyun going to sea | 10 jump &huawei cloud: jointly help Africa's inclusive financial services
- 奏响青春的乐章
- Win11U盘拒绝访问怎么办?Win11U盘拒绝访问的有效解决方法
- Lingyun going to sea | Wenhua online & Huawei cloud: creating a new solution for smart teaching in Africa
- So this is the BGP agreement
- Idea plug-in
- Flet教程之 06 TextButton基础入门(教程含源码)
- Common verification rules of form components -1 (continuously updating ~)
- What if the WiFi of win11 system always drops? Solution of WiFi total drop in win11 system
猜你喜欢
FS8B711S14电动红酒开瓶器单片机IC方案开发专用集成IC
Idea restore default shortcut key
Win11系统wifi总掉线怎么办?Win11系统wifi总掉线的解决方法
阿里测试师用UI自动化测试实现元素定位
What if win11u disk refuses access? An effective solution to win11u disk access denial
NetCore3.1 Json web token 中间件
电脑页面不能全屏怎么办?Win11页面不能全屏的解决方法
关于联邦学习和激励的相关概念(1)
Aiming at the "amnesia" of deep learning, scientists proposed that based on similarity weighted interleaved learning, they can board PNAS
什么叫内卷?
随机推荐
What if the WiFi of win11 system always drops? Solution of WiFi total drop in win11 system
【ISMB2022教程】图表示学习的精准医疗,哈佛大学Marinka Zitnik主讲,附87页ppt
Implementation of redis distributed lock
Is it safe for Great Wall Securities to open an account? Stock account opening process online account opening
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
什么叫内卷?
After inserting a picture into word, there is a blank line above the picture, and the layout changes after deletion
jekins初始化密码没有或找不到
Practical examples of node strong cache and negotiation cache
idea插件
Ziguang zhanrui completed the first 5g R17 IOT NTN satellite on the Internet of things in the world
MySQL中的日期时间类型与格式化方式
Redis分布式锁的实现
In operation (i.e. included in) usage of SSRs filter
太方便了,钉钉上就可完成代码发布审批啦!
[in-depth learning] review pytoch's 19 loss functions
Idea configuration standard notes
Taishan Office Technology Lecture: about the order of background (shading and highlighting)
Alibaba testers use UI automated testing to achieve element positioning
Practice examples to understand JS strong cache negotiation cache