mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
20 lines
239 B
Go
20 lines
239 B
Go
package util
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
func PrintVerbose(a ...interface{}) {
|
|
if viper.GetBool("verbose") {
|
|
log.Println(a)
|
|
}
|
|
}
|
|
|
|
func PrintDebug(a ...interface{}) {
|
|
if viper.GetBool("debug") {
|
|
log.Println(a)
|
|
}
|
|
}
|