File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ import (
25
25
"github.com/sirupsen/logrus"
26
26
)
27
27
28
+ // VerbosePrintln behaves like Println but only prints when verbosity is enabled.
29
+ func VerbosePrintln (v ... interface {}) {
30
+ VerbosePrint (v ... )
31
+ VerbosePrint ("\n " )
32
+ }
33
+
28
34
// VerbosePrintf behaves like Printf but only prints when verbosity is enabled.
29
35
func VerbosePrintf (format string , v ... interface {}) {
30
36
VerbosePrint (fmt .Sprintf (format , v ... ))
@@ -37,6 +43,12 @@ func VerbosePrint(v ...interface{}) {
37
43
}
38
44
}
39
45
46
+ // Println behaves like fmt.Println but only prints when output format is set to `text`.
47
+ func Println (v ... interface {}) {
48
+ Print (v ... )
49
+ Print ("\n " )
50
+ }
51
+
40
52
// Printf behaves like fmt.Printf but only prints when output format is set to `text`.
41
53
func Printf (format string , v ... interface {}) {
42
54
Print (fmt .Sprintf (format , v ... ))
You can’t perform that action at this time.
0 commit comments