gitlab.com/evatix-go/core@v1.3.55/errcore/FmtDebug.go (about) 1 package errcore 2 3 import "fmt" 4 5 func FmtDebug( 6 format string, 7 items ...interface{}, 8 ) { 9 fmt.Printf(format, items...) 10 } 11 12 func ValidPrint( 13 isValid bool, 14 items ...interface{}, 15 ) { 16 if isValid { 17 fmt.Print(items...) 18 } 19 } 20 21 func FailedPrint( 22 isFailed bool, 23 items ...interface{}, 24 ) { 25 if isFailed { 26 fmt.Print(items...) 27 } 28 }