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

Commit

Permalink
Merge 3495485 into 3637970
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse committed Oct 6, 2018
2 parents 3637970 + 3495485 commit 4fa551e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions example_byteslice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ func ExampleReverse() {
// Output: bada55
}

func ExampleRPad() {
data := []byte{0x55, 0xDA, 0xBA}

fmt.Printf("%x\n", RPad(data, 5, 0x22))
// Output: 55daba2222
}

func ExampleLPad() {
data := []byte{0x55, 0xDA, 0xBA}

Expand Down

0 comments on commit 4fa551e

Please sign in to comment.