20 lines
262 B
Go
20 lines
262 B
Go
package verbose
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
var Prefix = "fortify:"
|
|
|
|
func Println(a ...any) {
|
|
if verbose.Load() {
|
|
fmt.Println(append([]any{Prefix}, a...)...)
|
|
}
|
|
}
|
|
|
|
func Printf(format string, a ...any) {
|
|
if verbose.Load() {
|
|
fmt.Printf(Prefix+" "+format, a...)
|
|
}
|
|
}
|