snapshot before merge

This commit is contained in:
zqlit committed 2026-06-01 17:57:22 +08:00
1 parent 2b3b2850f9
commit 21fc65b3ae
145 files changed
+9786 -59

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
path = r"E:\GitHub\blog\bot-go\internal\tgcore\tgcore.go"
with open(path, "rb") as f:
content = f.read().decode("utf-8")
# Add missing imports
old_import = '''import (
"encoding/json"
"fmt"
"io"
"net/http"
"strings"
)'''
new_import = '''import (
"encoding/json"
"fmt"
"io"
"net"
"net/http"
"strings"
"time"
)'''
content = content.replace(old_import, new_import)
with open(path, "wb") as f:
f.write(content.encode("utf-8"))
print("Added net, time imports to tgcore")