你好,我需要在转换此值“0x00000800”后输出1即使我将此值(“0x00000800”)转换为2048,也足够了。
fmt.Println(strconv.Itoa((0x00000800 >> 11) & 0x1F)) //working correctly
//but my value comes as string
src:= "0x00000800"
fmt.Println(strconv.Itoa((src >> 11) & 0x1F)) //not working properly
https://gchq.github.io/CyberChef/#recipe=Convert_data_units('Bits%20(b)','Bits%20(b)')&input=MHgwMDAwMDgwMA
https://play.golang.org/p/Sb39Ihxi3Kx
慕尼黑5688855
相关分类