20 lines
261 B
Go
20 lines
261 B
Go
package cryptfs
|
|
|
|
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}
|