github.com/oarkflow/log@v1.0.78/fqdn/log_debug.go (about)

     1  //go:build DEBUG
     2  // +build DEBUG
     3  
     4  package fqdn
     5  
     6  import "fmt"
     7  
     8  func debug(s string, v ...interface{}) {
     9  	if s[len(s)-1] != '\n' {
    10  		s += string('\n')
    11  	}
    12  	fmt.Printf(s, v...)
    13  }