xjasonlyu
3 years ago
6 changed files with 12 additions and 17 deletions
@ -1,8 +0,0 @@ |
|||
// Package debug indicates if the debug tag is enabled at build time.
|
|||
package debug |
|||
|
|||
var _debug = false |
|||
|
|||
func Debug() bool { |
|||
return _debug |
|||
} |
@ -0,0 +1,7 @@ |
|||
package version |
|||
|
|||
var _debug = false |
|||
|
|||
func Debug() bool { |
|||
return _debug |
|||
} |
@ -1,6 +1,6 @@ |
|||
//go:build debug
|
|||
|
|||
package debug |
|||
package version |
|||
|
|||
func init() { |
|||
_debug = true |
@ -1,4 +1,4 @@ |
|||
package module |
|||
package version |
|||
|
|||
import ( |
|||
"runtime/debug" |
Loading…
Reference in new issue