package
0.124.0
Repository: https://github.com/caos/zitadel.git
Documentation: pkg.go.dev

# README

QR Code to SVG

This package is a copy of https://github.com/aaronarduino/goqrsvg with the difference of creating the svg with class attribute instead of inline style:

s.Rect(currX, currY, qs.blockSize, qs.blockSize, "class=\"color\"")

and not

s.Rect(currX, currY, qs.blockSize, qs.blockSize, "fill:black;stroke:none")

This allows the svg to be styled by css more easily and does not compromise Content Security Policy (CSP).

# Functions

NewQrSVG contructs a QrSVG struct.

# Structs

QrSVG holds the data related to the size, location, and block size of the QR Code.