mirror of
https://github.com/ggicci/httpin.git
synced 2024-12-02 09:01:33 +02:00
24 lines
227 B
Go
24 lines
227 B
Go
package httpin
|
|
|
|
import (
|
|
"log"
|
|
)
|
|
|
|
var (
|
|
debugOn = false
|
|
)
|
|
|
|
func DebugOn() {
|
|
debugOn = true
|
|
}
|
|
|
|
func DebugOff() {
|
|
debugOn = false
|
|
}
|
|
|
|
func debug(format string, v ...interface{}) {
|
|
if debugOn {
|
|
log.Printf(format, v...)
|
|
}
|
|
}
|