Updated libraries
This commit is contained in:
30
vendor/github.com/swaggo/swag/debug.go
generated
vendored
Normal file
30
vendor/github.com/swaggo/swag/debug.go
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
package swag
|
||||
|
||||
import (
|
||||
"log"
|
||||
)
|
||||
|
||||
const (
|
||||
test = iota
|
||||
release
|
||||
)
|
||||
|
||||
var swagMode = release
|
||||
|
||||
func isRelease() bool {
|
||||
return swagMode == release
|
||||
}
|
||||
|
||||
//Println calls Output to print to the standard logger when release mode.
|
||||
func Println(v ...interface{}) {
|
||||
if isRelease() {
|
||||
log.Println(v...)
|
||||
}
|
||||
}
|
||||
|
||||
//Printf calls Output to print to the standard logger when release mode.
|
||||
func Printf(format string, v ...interface{}) {
|
||||
if isRelease() {
|
||||
log.Printf(format, v...)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user