2020-08-22から1日間の記事一覧
1バイトを2進数で 0b00000001 のように表示 fmt.Printf("%#08b\n", message) //2進数 fmt.Printf("%#X\n", message) //16進数 #で0bや0xを付ける。08で最大8個0パディング。bで2進数。Xで16進数 バイトの配列を定義 message := byte{ 0b11011100, 0b10011010…
1バイトを2進数で 0b00000001 のように表示 fmt.Printf("%#08b\n", message) //2進数 fmt.Printf("%#X\n", message) //16進数 #で0bや0xを付ける。08で最大8個0パディング。bで2進数。Xで16進数 バイトの配列を定義 message := byte{ 0b11011100, 0b10011010…