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

Commit

Permalink
Add example for LSet
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse committed Oct 29, 2017
1 parent 08b9767 commit b2fb380
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions example_byteslice_bigendian_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package byteslice

import "fmt"

func ExampleLSet() {
data := []byte{0xAA, 0xCA, 0x55}
setData := []byte{0x10, 0x12}

fmt.Printf("%x\n", LSet(data, setData))
// Output: bada55
}

0 comments on commit b2fb380

Please sign in to comment.