gitlab.com/evatix-go/core@v1.3.55/errcore/FmtDebugIf.go (about)

     1  package errcore
     2  
     3  import "fmt"
     4  
     5  func FmtDebugIf(
     6  	isDebug bool,
     7  	format string,
     8  	items ...interface{},
     9  ) {
    10  	if !isDebug {
    11  		return
    12  	}
    13  
    14  	fmt.Printf(format, items...)
    15  }