Skip to content

Commit bef594f

Browse files
committed
chore: update pkg limit go version to 1.14+
1 parent 95811af commit bef594f

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

color_test.go

+19
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,25 @@ func TestQuickFunc(t *testing.T) {
436436
}
437437
fmt.Println()
438438

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+
fmt.Println()
457+
439458
// line func
440459
testFuncs = []func(...interface{}){
441460
Redln,

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/gookit/color
22

3-
go 1.13
3+
go 1.14
44

55
require (
66
github.com/stretchr/testify v1.7.2

0 commit comments

Comments
 (0)