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

Commit

Permalink
docs(byteslice_bigendian): add lunset example
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse committed Oct 6, 2018
1 parent 3e6b449 commit 001b06f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions example_byteslice_bigendian_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 001b06f

Please sign in to comment.