mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-24 07:45:15 +00:00
17 lines
236 B
Go
17 lines
236 B
Go
//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...)
|
|
}
|
|
}
|