diff --git a/example_byteslice_littleendian_test.go b/example_byteslice_littleendian_test.go index ab3eb19..154e1bf 100644 --- a/example_byteslice_littleendian_test.go +++ b/example_byteslice_littleendian_test.go @@ -18,3 +18,10 @@ func ExampleRUnset() { fmt.Printf("%x\n", output) // Output: 110100 } + +func ExampleRSubset() { + data := []byte{0xDA, 0x99, 0xBA} + output := RSubset(data, 6, 17) + fmt.Printf("%x\n", output) + // Output: 0a66 +}