diff --git a/example_byteslice_bigendian_test.go b/example_byteslice_bigendian_test.go index d61edb3..cd92d83 100644 --- a/example_byteslice_bigendian_test.go +++ b/example_byteslice_bigendian_test.go @@ -17,3 +17,12 @@ func ExampleLToggle() { fmt.Printf("%x\n", LToggle(data, setData)) // Output: bada55 } + +func ExampleLUnset() { + data := []byte{0x11, 0x11, 0x10} + unsetData := []byte{0x01, 0x01} + + output := LUnset(data, unsetData) + fmt.Printf("%x\n", output) + // Output: 010110 +}