Skip to content

Commit

Permalink
chore: update pkg limit go version to 1.14+
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jun 10, 2022
1 parent 95811af commit bef594f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions color_test.go
Expand Up @@ -436,6 +436,25 @@ func TestQuickFunc(t *testing.T) {
}
fmt.Println()

// format func
testFuncs2 := []func(tpl string, vs ...interface{}){
Redf,
Bluef,
Cyanf,
Grayf,
Greenf,
Yellowf,
Magentaf,
}
fmt.Println("--- quick format message print:")
for i, fn := range testFuncs2 {
if i == 3 {
fmt.Println()
}
fn("format %s,", "message")
}
fmt.Println()

// line func
testFuncs = []func(...interface{}){
Redln,
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/gookit/color

go 1.13
go 1.14

require (
github.com/stretchr/testify v1.7.2
Expand Down

0 comments on commit bef594f

Please sign in to comment.