![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
golang
astronautyi
这个作者很懒,什么都没留下…
展开
-
golang运算符
1.^x bitwise complement is m ^ x with m = "all bits set to 1" for unsigned x and m = -1 for signed x 此运算符可用于将标志位取消的操作: f := 4 f &^= 4 fmt.Println(f) //输出为0原创 2021-01-25 18:52:40 · 70 阅读 · 0 评论 -
golang中interface可以比较是否相等
Interface values are comparable. Two interface values are equal if they haveidenticaldynamic types and equal dynamic values or if both have valuenil原创 2021-01-16 17:52:27 · 2012 阅读 · 0 评论