Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 561 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 561 Bytes

File

go.dev reference

File Writer is a writer used to draw QR Code images into files using the characters ▀, ▄, █, and space.

Usage

package main

import (
	"github.com/yeqown/go-qrcode/v2"
	"github.com/yeqown/go-qrcode/writer/file"
)

func main() {
	qrc, _ := qrcode.New("with_file_writer")

	w := file.New(os.Stdout)

	if err := qrc.Save(w); err != nil {
		panic(err)
	}
}