mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
16 lines
306 B
Go
16 lines
306 B
Go
// +build debug
|
|
|
|
package debug
|
|
|
|
import "log"
|
|
|
|
// Log only logs when the debug build flag is present.
|
|
func Log(data string) {
|
|
log.Println(data)
|
|
}
|
|
|
|
// Logf only logs with a formatted string when the debug build flag is present.
|
|
func Logf(format string, args ...interface{}) {
|
|
log.Printf(format, args...)
|
|
}
|