You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
matterbridge/vendor/github.com/Baozisoftware/qrcode-terminal-go
Krzysiek Madejski 55e79063d6 Add initial WhatsApp support (#711) 5 years ago
..
.gitignore Add initial WhatsApp support (#711) 5 years ago
LICENSE Add initial WhatsApp support (#711) 5 years ago
README.md Add initial WhatsApp support (#711) 5 years ago
qrcodeTerminal.go Add initial WhatsApp support (#711) 5 years ago

README.md

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