package common import ( "flag" "fmt" ) var ( nostdout = flag.Bool("ge_no_stdout", false, "if true nothing will be printed on stdout") ) func IsStdoutAllowed() bool { return !*nostdout } func FancyPrintf(msg string, args ...interface{}) { if *nostdout { return } l := "[go-easyops] " fmt.Printf(l+msg, args...) }