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

Commit

Permalink
docs(byteslice): add flip example
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse committed Oct 6, 2018
1 parent 4340081 commit d3aa551
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions example_byteslice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,11 @@ func ExampleSet() {
fmt.Printf("%x\n", output)
// Output: dbbbbb
}

func ExampleFlip() {
data := []byte{0xDA, 0x99, 0xBA}

output := Flip(data)
fmt.Printf("%x\n", output)
// Output: 256645
}

0 comments on commit d3aa551

Please sign in to comment.