first version

This commit is contained in:
2026-02-08 22:29:45 +01:00
commit d1e54774a7
15 changed files with 1355 additions and 0 deletions

26
main_debug.go Normal file
View File

@@ -0,0 +1,26 @@
//go:build debug
package main
import (
"context"
"fmt"
"log/slog"
"os"
"runtime"
"runtime/debug"
)
func main() {
slog.SetLogLoggerLevel(slog.LevelDebug)
ctx, cancelFunc := context.WithCancel(context.Background())
defer cancelFunc()
debug.SetTraceback("all")
fmt.Printf("docker-updater -- debug (%s/%s)\n\n", runtime.GOOS, runtime.GOARCH)
slog.Debug("debug mode enabled", "thread", "main")
os.Exit(run(ctx, true))
}