diff --git a/example_byteslice_test.go b/example_byteslice_test.go index bd9da1c..024cd47 100644 --- a/example_byteslice_test.go +++ b/example_byteslice_test.go @@ -50,3 +50,11 @@ func ExampleLShift() { fmt.Printf("%x\n", output) // Output: 99ba00 } + +func ExampleRShift() { + data := []byte{0xDA, 0x99, 0xBA} + + output := RShift(data, 8) + fmt.Printf("%x\n", output) + // Output: 00da99 +}