1
0
mirror of https://github.com/fumiama/gozel.git synced 2026-06-12 04:20:28 +08:00

feat: add all other needs

This commit is contained in:
源文雨
2026-03-25 23:25:56 +08:00
parent 32ada81b80
commit 64de25bd44
28 changed files with 4678 additions and 416 deletions

View File

@@ -31,6 +31,8 @@ import (
"github.com/fumiama/gozel/internal/zecall"
)
const debug = false
func init() {
`)
}
@@ -38,7 +40,7 @@ func init() {
func addAPI(name string) {
apif.WriteString("\n\tif err := zecall.Register(\"")
apif.WriteString(name)
apif.WriteString("\"); err != nil {\n\t\tfmt.Fprintln(os.Stderr, \"[gozel.warn]\", err)\n\t}\n")
apif.WriteString("\"); debug && err != nil {\n\t\tfmt.Fprintln(os.Stderr, \"[gozel.warn]\", err)\n\t}\n")
}
func closeAPI() {