refactor: move gadb to hrp pkg

This commit is contained in:
debugtalk
2022-10-23 22:04:42 +08:00
parent 6e1348dc1e
commit 896f39c3f2
16 changed files with 1506 additions and 8 deletions
+17
View File
@@ -0,0 +1,17 @@
package gadb
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] [gadb] " + msg)
}