Adjust grid layout, optimize widget placement, and refine QR Code rendering logic

This commit is contained in:
2025-12-31 01:04:26 +01:00
parent 7a846ee660
commit 0fc1ea476b
4 changed files with 119 additions and 41 deletions

16
test/test.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import "fmt"
func main() {
lines := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}
length := (len(lines)) / 2
for i := range length {
fmt.Println("-")
fmt.Printf("%d=>%d\n", lines[i*2], lines[i*2+1])
fmt.Println("-")
}
if len(lines)%2 == 1 {
fmt.Printf("%d", lines[len(lines)-1])
}
}