当前位置:网站首页>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
边栏推荐
- Dynamic memory management
- Jekins initialization password not found or not found
- What should I do if my computer sharing printer refuses access
- Flet tutorial 07 basic introduction to popupmenubutton (tutorial includes source code)
- 同事的接口文档我每次看着就头大,毛病多多。。。
- CDGA|数据治理不得不坚持的六个原则
- 面对同样复杂的测试任务为什么大老很快能梳理解决方案,阿里十年测试工程师道出其中的技巧
- 实践示例理解js强缓存协商缓存
- Lingyun going to sea | 10 jump &huawei cloud: jointly help Africa's inclusive financial services
- 语义化标签的优势和块级行内元素
猜你喜欢

强化学习-学习笔记2 | 价值学习

电脑怎么保存网页到桌面上使用

面对同样复杂的测试任务为什么大老很快能梳理解决方案,阿里十年测试工程师道出其中的技巧

精选综述 | 用于白内障分级/分类的机器学习技术

QT writing the Internet of things management platform 38- multiple database support

Selected review | machine learning technology for Cataract Classification / classification

Four traversal methods of binary tree, as well as the creation of binary tree from middle order to post order, pre order to middle order, pre order to post order, and sequence [specially created for t

字节测试工程师十年经验直击UI 自动化测试痛点

电脑共享打印机拒绝访问要怎么办

二叉树的四种遍历方式以及中序后序、前序中序、前序后序、层序创建二叉树【专为力扣刷题而打造】
随机推荐
Lingyun going to sea | Murong Technology & Huawei cloud: creating a model of financial SaaS solutions in Africa
go语言笔记(4)go常用管理命令
From automation to digital twins, what can Tupo do?
Is it safe for Great Wall Securities to open an account? Stock account opening process online account opening
Flet教程之 07 PopupMenuButton基础入门(教程含源码)
Why is TCP three handshakes and four waves
Lingyun going to sea | 10 jump &huawei cloud: jointly help Africa's inclusive financial services
Jekins initialization password not found or not found
奏响青春的乐章
企业数字化转型最佳实践案例:基于云的数字化平台系统安全措施简介与参考
Win11无法将值写入注册表项如何解决?
QT writing the Internet of things management platform 38- multiple database support
栈:如何实现有效括号的判断?
Summary of the mistakes in the use of qpainter in QT gobang man-machine game
黄金k线图中的三角形有几种?
Idea plug-in
Why is the maximum speed the speed of light
15million employees are easy to manage, and the cloud native database gaussdb makes HR office more efficient
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
Idea restore default shortcut key