snapshot before merge

This commit is contained in:
zqlit committed 2026-06-01 17:57:22 +08:00
1 parent 06a5f3da4d
commit 671871e0b2
145 files changed
+9786 -59

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
p = r"E:\GitHub\blog\write-go\cmd\writeserver\main.go"
with open(p, "r", encoding="utf-8") as f:
c = f.read()
c = c.replace("var log = logutil.Logger", "var lg = logutil.Logger")
c = c.replace("log.Info(", "lg.Info(")
c = c.replace("log.Error(", "lg.Error(")
with open(p, "w", encoding="utf-8", newline="\n") as f:
f.write(c)
print("Fixed log variable")