1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-09 17:29:54 +00:00
This commit is contained in:
Laura
2025-08-15 03:38:24 +02:00
parent 3adaa69bc0
commit 75a9d893c3
5 changed files with 115 additions and 3 deletions

View File

@@ -1,5 +1,19 @@
package main
import (
"encoding/json"
"os"
)
func dump(name string, val any) {
if !Debug {
return
}
b, _ := json.MarshalIndent(val, "", "\t")
os.WriteFile(name, b, 0644)
}
func debug(format string, args ...any) {
if !Debug {
return