Skip to content

qrcode.Encode accept and []byte instead of string #55

Description

@bokunodev

Hi, we are using this library to encode output from json.Marshal into a qrcode.
but converting []byte to string is a copy operation, and we want to minimize that.
having qrcode.Encode variant that accept []byte instead of string would be great.
probably i'll be named qrcode.EncodeBytes, with that we could reuse buffer and probably improve performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions