当前位置:网站首页>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
边栏推荐
- Flet教程之 05 OutlinedButton基础入门(教程含源码)
- node强缓存和协商缓存实战示例
- What is the development of block hash quiz game system? Hash quiz game system development (case mature)
- So this is the BGP agreement
- go笔记(1)go语言介绍以及特点
- Integretee integrates into Moonriver through xcm, bringing enterprise class privacy solutions to its ecosystem
- What if win11u disk refuses access? An effective solution to win11u disk access denial
- See how Tencent does interface automation testing
- LeetCode 871. 最低加油次数
- AP8022开关电源小家电ACDC芯片离线式开关电源IC
猜你喜欢
What if the win11 shared file cannot be opened? The solution of win11 shared file cannot be opened
Automatic generation of interface automatic test cases by actual operation
精选综述 | 用于白内障分级/分类的机器学习技术
How does the computer save web pages to the desktop for use
Practice examples to understand JS strong cache negotiation cache
Jiuqi ny8b062d MCU specification /datasheet
NLP、视觉、芯片...AI重点方向发展几何?青源会展望报告发布[附下载]
Installation and use of VMware Tools and open VM tools: solve the problems of incomplete screen and unable to transfer files of virtual machines
Understand the reading, writing and creation of files in go language
Win11系统wifi总掉线怎么办?Win11系统wifi总掉线的解决方法
随机推荐
Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation
Lingyun going to sea | Wenhua online & Huawei cloud: creating a new solution for smart teaching in Africa
企业数字化转型最佳实践案例:基于云的数字化平台系统安全措施简介与参考
黄金k线图中的三角形有几种?
hash 表的概念及应用
PermissionError: [Errno 13] Permission denied: ‘data.csv‘
Flet教程之 07 PopupMenuButton基础入门(教程含源码)
go语言笔记(4)go常用管理命令
最长的可整合子数组的长度
How to adapt your games to different sizes of mobile screen
Idea restore default shortcut key
Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
[today in history] July 4: the first e-book came out; The inventor of magnetic stripe card was born; Palm computer pioneer was born
idea插件
同事的接口文档我每次看着就头大,毛病多多。。。
How does win11 search for wireless displays? Win11 method of finding wireless display device
Win11系统wifi总掉线怎么办?Win11系统wifi总掉线的解决方法
记一次 .NET 某工控数据采集平台 线程数 爆高分析
Automatic generation of interface automatic test cases by actual operation
ICML 2022 | meta proposes a robust multi-objective Bayesian optimization method to effectively deal with input noise