feat: add Fiber HTTPS server with embedded static files

This commit is contained in:
2026-03-01 03:03:15 +08:00
parent 044a8aa166
commit 4ebc9226ed
4 changed files with 262 additions and 0 deletions

18
qrcode.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
"os"
"github.com/mdp/qrterminal/v3"
)
// printQRCode prints a QR code to the terminal.
func printQRCode(url string) {
qrterminal.GenerateWithConfig(url, qrterminal.Config{
Level: qrterminal.L,
Writer: os.Stdout,
BlackChar: qrterminal.BLACK,
WhiteChar: qrterminal.WHITE,
QuietZone: 2,
})
}