qrcode

package
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package qrcode creates one or more QR codes in PNG format encoding the JWS of a SMART Health Card such that smart devices such as iPhones can scan the QR code(s) and load the SMART Health Card information in applications such as the Wallet and Health apps for the iPhone. See https://spec.smarthealth.cards/#every-health-card-can-be-embedded-in-a-qr-code and https://spec.smarthealth.cards/#encoding-chunks-as-qr-codes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(content string) ([][]byte, error)

Encode takes the content to be encoded, breaks it into chunks if necessary, and encodes each chunk as per the SMART Health Card spec, see: https://spec.smarthealth.cards/#encoding-chunks-as-qr-codes.

Each encoded chunk is then encoded as a QR code in PNG format and represented as a byte slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL