Skip to content
QRCode terminal for golang.
Branch: master
Clone or download
Baozisoftware
Baozisoftware update
Latest commit c0650d8 Apr 7, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
screenshots Add files via upload Mar 16, 2017
.gitignore Initial commit Mar 16, 2017
LICENSE Initial commit Mar 16, 2017
README.md
qrcodeTerminal.go

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

You can’t perform that action at this time.