mirror of
https://github.com/strongdm/comply
synced 2024-08-30 10:53:34 +00:00
23 lines
317 B
Go
23 lines
317 B
Go
package github
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func vprintln(a ...interface{}) (int, error) {
|
|
if VERBOSITY > 0 {
|
|
return fmt.Fprintln(os.Stderr, a...)
|
|
}
|
|
|
|
return 0, nil
|
|
}
|
|
|
|
func vprintf(format string, a ...interface{}) (int, error) {
|
|
if VERBOSITY > 0 {
|
|
return fmt.Fprintf(os.Stderr, format, a...)
|
|
}
|
|
|
|
return 0, nil
|
|
}
|