Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 591 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 591 Bytes

Terminal

go.dev reference

Standard Writer is a writer that is used to draw QR Code image into terminal.

Usage

package main

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

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

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

Option

🤪 Do not support any option yet.