5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-24 21:21:34 +00:00
matterbridge/vendor/github.com/Baozisoftware/qrcode-terminal-go
2022-03-20 14:57:48 +01:00
..
.gitignore Add whatsappmulti buildflag for whatsapp with multidevice support (whatsapp) 2022-03-20 14:57:48 +01:00
LICENSE Add whatsappmulti buildflag for whatsapp with multidevice support (whatsapp) 2022-03-20 14:57:48 +01:00
qrcodeTerminal.go Add whatsappmulti buildflag for whatsapp with multidevice support (whatsapp) 2022-03-20 14:57:48 +01:00
README.md Add whatsappmulti buildflag for whatsapp with multidevice support (whatsapp) 2022-03-20 14:57:48 +01:00

qrcode-terminal-go

QRCode terminal for golang.

Example

package main

import "github.com/Baozisoftware/qrcode-terminal-go"

func main() {
	Test1()
	Test2()
}

func Test1(){
	content := "Hello, 世界"
	obj := qrcodeTerminal.New()
	obj.Get(content).Print()
}

func Test2(){
	content := "https://github.com/Baozisoftware/qrcode-terminal-go"
	obj := qrcodeTerminal.New2(qrcodeTerminal.ConsoleColors.BrightBlue,qrcodeTerminal.ConsoleColors.BrightGreen,qrcodeTerminal.QRCodeRecoveryLevels.Low)
	obj.Get([]byte(content)).Print()
}

Screenshots

Windows XP

winxp

Windows 7

win7

Windows 10

win10

Ubuntu

ubuntu

macOS

macos