qrcode

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

README

qrcode

Pacchetto per la generazione dei QR code destinati ai libri.

Funzionamento

Le funzioni in questo package generano le password per uno o più libri e le salvano un in QR code. Il formato delle immagini è png.

Tipi

type QRCodeLibro

Funzioni

func CreateQRCode(id uint32) (QRCodeLibro, error) // genera e ritorna il QR code del libro con l'id passato in argomento
func GeneratePage(ids []uint32) (string, error) // ritorna una pagina HTML con i codici QR

Documentation

Overview

Funzioni per la generazione dei QR code destinati ai libri.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePage

func GeneratePage(ids []uint32) (string, error)

Genera una pagina HTML con i codici disposti in una griglia.

Types

type QRCodeLibro

type QRCodeLibro struct {
	Codice uint32
	Titolo string
	QRCode []byte
}

func CreateQRCode

func CreateQRCode(id uint32) (QRCodeLibro, error)

Genera il codice QR per il libro del codice indicato.

Jump to

Keyboard shortcuts

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