move ghdc to pkg

This commit is contained in:
lilong.129
2025-03-05 21:40:47 +08:00
parent b5fffdf548
commit 1e1f8d215d
18 changed files with 3268 additions and 3 deletions
+17
View File
@@ -0,0 +1,17 @@
package ghdc
import "log"
var debugFlag = false
// SetDebug set debug mode
func SetDebug(debug bool) {
debugFlag = debug
}
func debugLog(msg string) {
if !debugFlag {
return
}
log.Println("[DEBUG] [ghd] " + msg)
}