mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
add the missing file
This commit is contained in:
parent
8d2f4fb626
commit
35b7667da6
16
pkg/strategy/tri/debug.go
Normal file
16
pkg/strategy/tri/debug.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
//go:build debug
|
||||
// +build debug
|
||||
|
||||
package tri
|
||||
|
||||
const debugMode = true
|
||||
|
||||
func debug(msg string, args ...any) {
|
||||
log.Infof(msg, args...)
|
||||
}
|
||||
|
||||
func debugAssert(expr bool, msg string, args ...any) {
|
||||
if !expr {
|
||||
log.Errorf(msg, args...)
|
||||
}
|
||||
}
|
9
pkg/strategy/tri/debug_null.go
Normal file
9
pkg/strategy/tri/debug_null.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
//go:build !debug
|
||||
|
||||
package tri
|
||||
|
||||
const debugMode = false
|
||||
|
||||
func debug(msg string, args ...any) {}
|
||||
|
||||
func debugAssert(expr bool, msg string, args ...any) {}
|
Loading…
Reference in New Issue
Block a user