Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wamuir/svg-qr-code
Scalable Vector Graphics (SVG) encoding of QR Codes
https://github.com/wamuir/svg-qr-code
golang qrcode svg
Last synced: 2 months ago
JSON representation
Scalable Vector Graphics (SVG) encoding of QR Codes
- Host: GitHub
- URL: https://github.com/wamuir/svg-qr-code
- Owner: wamuir
- License: mit
- Created: 2020-10-26T17:57:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-25T14:04:28.000Z (over 3 years ago)
- Last Synced: 2024-11-02T11:11:21.460Z (3 months ago)
- Topics: golang, qrcode, svg
- Language: Go
- Homepage: https://godoc.org/github.com/wamuir/svg-qr-code
- Size: 30.3 KB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
svg-qr-code
=====[![Go Reference](https://pkg.go.dev/badge/github.com/wamuir/svg-qr-code.svg)](https://pkg.go.dev/github.com/wamuir/svg-qr-code)
[![Build Status](https://github.com/wamuir/svg-qr-code/actions/workflows/go.yml/badge.svg?branch=main&event=push)](https://github.com/wamuir/svg-qr-code/actions/workflows/go.yml?query=event%3Apush+branch%3Amain)
[![codecov](https://codecov.io/gh/wamuir/svg-qr-code/branch/main/graph/badge.svg)](https://codecov.io/gh/wamuir/svg-qr-code)
[![Go Report Card](https://goreportcard.com/badge/github.com/wamuir/svg-qr-code)](https://goreportcard.com/report/github.com/wamuir/svg-qr-code)# 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
```go
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](https://github.com/wamuir/svg-qr-code/raw/main/example.svg)