Improved input service. New Manager web app. Directory and small readme for output service.
This commit is contained in:
17
manager/gr.go
Normal file
17
manager/gr.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/skip2/go-qrcode"
|
||||
)
|
||||
|
||||
func PrintQRCode(content string) {
|
||||
qr, err := qrcode.New(content, qrcode.Medium)
|
||||
if err != nil {
|
||||
logger.Error("Failed to generate QR code: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
// Generate QR code as string (ASCII art)
|
||||
fmt.Println(qr.ToSmallString(false))
|
||||
}
|
||||
Reference in New Issue
Block a user