mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-04 13:07:39 +03:00
16 lines
267 B
Go
16 lines
267 B
Go
package utils
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/mdp/qrterminal/v3"
|
|
)
|
|
|
|
func PrintQR(str string) {
|
|
qrterminal.GenerateWithConfig(str, qrterminal.Config{
|
|
Level: qrterminal.L,
|
|
Writer: os.Stdout,
|
|
BlackChar: qrterminal.BLACK,
|
|
WhiteChar: qrterminal.WHITE,
|
|
})
|
|
}
|