We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95811af commit bef594fCopy full SHA for bef594f
color_test.go
@@ -436,6 +436,25 @@ func TestQuickFunc(t *testing.T) {
436
}
437
fmt.Println()
438
439
+ // format func
440
+ testFuncs2 := []func(tpl string, vs ...interface{}){
441
+ Redf,
442
+ Bluef,
443
+ Cyanf,
444
+ Grayf,
445
+ Greenf,
446
+ Yellowf,
447
+ Magentaf,
448
+ }
449
+ fmt.Println("--- quick format message print:")
450
+ for i, fn := range testFuncs2 {
451
+ if i == 3 {
452
+ fmt.Println()
453
454
+ fn("format %s,", "message")
455
456
457
+
458
// line func
459
testFuncs = []func(...interface{}){
460
Redln,
go.mod
@@ -1,6 +1,6 @@
1
module github.com/gookit/color
2
3
-go 1.13
+go 1.14
4
5
require (
6
github.com/stretchr/testify v1.7.2
0 commit comments