yeqown / go-qrcode

To help gophers generate QR Codes with customized styles, such as color, block size, block shape, and icon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

should close fd in QRCode.Save method

yeung66 opened this issue · comments

without closing the fd create in QRCode.Save(saveToPath string), the qrcode image file is always used and cannot be processed

should add

defer fd.Close()

before return statement

Would do you mind opening a PR for this?