From d2e34a3a4410c6bcda4632697dca5cd99ecd37c4 Mon Sep 17 00:00:00 2001 From: Yaks Souza Date: Wed, 26 Apr 2023 10:52:02 -0300 Subject: [PATCH] doc: add ReadPix example to README --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index ba7fd19..5ba15f8 100644 --- a/README.md +++ b/README.md @@ -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