Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
docs(byteslice_littleendian): add runset example
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse committed Oct 6, 2018
1 parent ffb4eda commit f8051eb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions example_byteslice_littleendian_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,12 @@ func ExampleRSet() {
fmt.Printf("%x\n", RSet(data, setData))
// Output: bada55
}

func ExampleRUnset() {
data := []byte{0x11, 0x11, 0x00}
unsetData := []byte{0x01, 0x01}

output := RUnset(data, unsetData)
fmt.Printf("%x\n", output)
// Output: 110100
}

0 comments on commit f8051eb

Please sign in to comment.