bitwise operator in Go
Go implements arithmetic shifts if the left operand is a signed integer and logical shifts if it is an unsigned integer. ``` fmt.Println(2>>1) //1 fmt.Println(-2>>1) //-1 ```
Go implements arithmetic shifts if the left operand is a signed integer and logical shifts if it is an unsigned integer. ``` fmt.Println(2>>1) //1 fmt.Println(-2>>1) //-1 ```