mirror of
https://github.com/hanzoai/dashscopego.git
synced 2026-10-30 18:41:14 +00:00
20 lines
213 B
Go
20 lines
213 B
Go
package config
|
|
|
|
import (
|
|
"io"
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
//nolint:gochecknoglobals
|
|
var Debug = false
|
|
|
|
//nolint:gochecknoinits
|
|
func init() {
|
|
if !Debug {
|
|
log.SetOutput(io.Discard)
|
|
} else {
|
|
log.SetOutput(os.Stderr)
|
|
}
|
|
}
|