Pretty simple, I stole this from the NodeJS version at https://github.com/gtanner/qrcode-terminal and turned it into a Golang library.
go get github.com/mdp/qrterminal
import (
"github.com/mdp/qrterminal"
"os"
)
func main() {
qrterminal.Generate("https://github.com/mdp/qrterminal", os.Stdout)
}
Inverted barcode with medium redundancy
import (
"github.com/mdp/qrterminal"
"os"
)
func main() {
config := qrterminal.Config{
Level: qrterminal.L,
Writer: os.Stdout,
BlackChar: qrterminal.WHITE,
WhiteChar: qrterminal.BLACK,
}
qrterminal.GenerateWithConfig("https://github.com/mdp/qrterminal", config)
}