Categorygithub.com/wamuir/svg-qr-code
modulepackage
0.0.0-20210725140500-9525ec975db7
Repository: https://github.com/wamuir/svg-qr-code.git
Documentation: pkg.go.dev

# README

svg-qr-code

Go Reference Build Status codecov Go Report Card

Description

svg-qr-code is a Go module that encodes QR Codes in SVG format

Installation

This module can be installed with the go get command:

go get -u github.com/wamuir/svg-qr-code

Example Usage


  qr, err := qrsvg.New("https://github.com/wamuir/svg-qr-code")
  if err != nil {
     panic(err)
  }

  // qr satisfies fmt.Stringer interface (or call qr.String() for a string)
  fmt.Println(qr)

Example Result

Quick Response (QR) Code

# Functions

New returns the QR for the provided string, with default settings for blocksize, borderwidth and background color.

# Structs

Block is a color block in the rendered QR code.
QR holds a QR Code (from github.com/skip2/go-qrcode) and SVG settings.
SVG is the vector representation of a QR code, as a Go struct.