Skip to content

Commit

Permalink
doc: add ReadPix example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Plankiton committed Apr 26, 2023
1 parent 65a3887 commit d2e34a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ if err != nil {
}

fmt.Println(copyPaste) // will output: "00020126580014BR.GOV.BCB.PIX0122jonnasfonini@gmail.com0210Invoice #4520400005303986540520.675802BR5913Jonnas Fonini6005Marau62410503***50300017BR.GOV.BCB.BRCODE01051.0.06304CF13"

optionsFromCode, err := pix.ReadPix(copyPaste)
if err != nil {
panic(err)
}

fmt.Println(optionsFromCode)
```

### Generating a QR code from a Copy and Paste code
Expand Down

0 comments on commit d2e34a3

Please sign in to comment.