mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
17 lines
243 B
Go
17 lines
243 B
Go
package main
|
|
|
|
import "log"
|
|
|
|
// LogFunc defines a simple log function
|
|
type LogFunc func(f string, v ...interface{})
|
|
|
|
var logf LogFunc
|
|
|
|
func init() {
|
|
logf = func(f string, v ...interface{}) {
|
|
if conf.Verbose {
|
|
log.Printf(f, v...)
|
|
}
|
|
}
|
|
}
|