In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to share with you what the bit operator supported by Go language has, detailed content and clear logic. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
The bit operators supported by the Go language are shown in the following table. Suppose An is 60 and B is 13:
Operator describes the instance & bitwise and the operator "&" are binocular operators. Its function is the binary phase corresponding to each of the two numbers involved in the operation. (a & B) the result is 12, and the binary is 0000 1100 | Bitwise or operator "|" is a binocular operator. Its function is that the binary phase or (A | B) corresponding to each of the two numbers involved in the operation is 61, and the binary is 0011 1101 ^ bitwise XOR operator "^" is a binocular operator. Its function is that the binary bits corresponding to each of the two numbers involved in the operation are different or. When the corresponding binary bits are different, the result is 1. (a ^ B) the result is 49, the binary is 0011 0001 > 2, the result is 15, and the binary is 0000 1111go. Golang is a compiled language that can compile the code into machine code, and the compiled binaries can be deployed directly to the target machine without additional dependencies, so the performance of golang is better than other interpretive languages, and you can use goroutine in golang to achieve concurrency. It provides a very elegant goroutine scheduler system that can easily generate millions of goroutine.
That's all of the article "what are the bit operators supported by the Go language?" Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.