From bef594f34ff7a5f0fcb50005939b4e170d969bfb Mon Sep 17 00:00:00 2001 From: Inhere Date: Fri, 10 Jun 2022 11:59:10 +0800 Subject: [PATCH] chore: update pkg limit go version to 1.14+ --- color_test.go | 19 +++++++++++++++++++ go.mod | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/color_test.go b/color_test.go index 68df26f..eab9818 100644 --- a/color_test.go +++ b/color_test.go @@ -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, diff --git a/go.mod b/go.mod index 13ebff3..3e68bd9 100644 --- a/go.mod +++ b/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