20 lines
263 B
Go
20 lines
263 B
Go
|
package gocryptfs
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
type logChannel struct {
|
||
|
enabled bool
|
||
|
}
|
||
|
|
||
|
func (l logChannel) Printf(format string, args ...interface{}) {
|
||
|
if l.enabled == true {
|
||
|
fmt.Printf(format, args...)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
var debug = logChannel{true}
|
||
|
var warn = logChannel{true}
|