Golint
This commit is contained in:
parent
0682698f0b
commit
969ba1dc21
8 changed files with 125 additions and 81 deletions
|
@ -17,6 +17,7 @@ const (
|
|||
|
||||
var traceDebugMsgs = false
|
||||
|
||||
// Trace log
|
||||
func TraceLog(msgType int, text string, v ...interface{}) {
|
||||
switch msgType {
|
||||
case LogInfo:
|
||||
|
@ -33,6 +34,7 @@ func TraceLog(msgType int, text string, v ...interface{}) {
|
|||
}
|
||||
}
|
||||
|
||||
// Set debug messages
|
||||
func SetDebug(enabled bool) {
|
||||
traceDebugMsgs = enabled
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue