2024-09-12 21:07:05 +09:00
|
|
|
package verbose
|
|
|
|
|
2024-10-11 01:49:11 +09:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
)
|
2024-09-12 21:07:05 +09:00
|
|
|
|
2024-10-11 01:49:11 +09:00
|
|
|
var Prefix = "fortify:"
|
2024-09-22 00:29:36 +09:00
|
|
|
|
2024-09-12 21:07:05 +09:00
|
|
|
func Println(a ...any) {
|
|
|
|
if verbose.Load() {
|
2024-10-11 01:49:11 +09:00
|
|
|
fmt.Println(append([]any{Prefix}, a...)...)
|
2024-09-12 21:07:05 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func Printf(format string, a ...any) {
|
|
|
|
if verbose.Load() {
|
2024-10-11 01:49:11 +09:00
|
|
|
fmt.Printf(Prefix+" "+format, a...)
|
2024-09-12 21:07:05 +09:00
|
|
|
}
|
|
|
|
}
|