当前位置:网站首页>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
边栏推荐
- idea恢复默认快捷键
- 面对同样复杂的测试任务为什么大老很快能梳理解决方案,阿里十年测试工程师道出其中的技巧
- What if the win11 shared file cannot be opened? The solution of win11 shared file cannot be opened
- idea插件
- Redis分布式锁的实现
- Practice examples to understand JS strong cache negotiation cache
- In operation (i.e. included in) usage of SSRs filter
- What if the WiFi of win11 system always drops? Solution of WiFi total drop in win11 system
- Integretee integrates into Moonriver through xcm, bringing enterprise class privacy solutions to its ecosystem
- What is the development of block hash quiz game system? Hash quiz game system development (case mature)
猜你喜欢
Practice examples to understand JS strong cache negotiation cache

hash 表的概念及应用

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

Win11怎么搜索无线显示器?Win11查找无线显示器设备的方法

同事的接口文档我每次看着就头大,毛病多多。。。

See how Tencent does interface automation testing

Summary of the mistakes in the use of qpainter in QT gobang man-machine game

How to adapt your games to different sizes of mobile screen

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

Fleet tutorial 08 introduction to AppBar toolbar Basics (tutorial includes source code)
随机推荐
2022 version of stronger jsonpath compatibility and performance test (snack3, fastjson2, jayway.jsonpath)
NLP, vision, chip What is the development direction of AI? Release of the outlook report of Qingyuan Association [download attached]
浏览器渲染页面过程
jekins初始化密码没有或找不到
go语言笔记(2)go一些简单运用
Aiming at the "amnesia" of deep learning, scientists proposed that based on similarity weighted interleaved learning, they can board PNAS
Idea plug-in
BFC interview Brief
PermissionError: [Errno 13] Permission denied: ‘data.csv‘
剑指 Offer II 80-100(持续更新)
电脑页面不能全屏怎么办?Win11页面不能全屏的解决方法
ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声
Integretee integrates into Moonriver through xcm, bringing enterprise class privacy solutions to its ecosystem
【深度学习】一文看尽Pytorch之十九种损失函数
Alibaba testers use UI automated testing to achieve element positioning
SSRS筛选器的IN运算(即包含于)用法
字节测试工程师十年经验直击UI 自动化测试痛点
MySQL中的日期时间类型与格式化方式
What if win11u disk refuses access? An effective solution to win11u disk access denial
acwing 3302. 表达式求值