@@ -0,0 +1,23 @@
package main
import (
"encoding/json"
"os"
)
func dump(v any) {
if !Debug {
return
}
b, _ := json.MarshalIndent(v, "", "\t")
os.WriteFile("debug.json", b, 0644)
func debug(v any) {
log.Debugf("%#v\n", v)
The note is not visible to the blocked user.