From d36f61bc8072565aa05c9659ee2269cf9009e01f Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Thu, 10 Mar 2022 09:50:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=90=88=E5=B9=B6=E6=8F=90=E4=BA=A4):=20?= =?UTF-8?q?=E5=90=88=E5=B9=B6=E6=8F=90=E4=BA=A4=EF=BC=8Clog=E6=94=B9fmt?= =?UTF-8?q?=E5=87=8F=E5=B0=91=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gitcz.go | 4 ++-- go.mod | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gitcz.go b/gitcz.go index 3616e38..ebf8be9 100644 --- a/gitcz.go +++ b/gitcz.go @@ -6,7 +6,6 @@ import ( "flag" "fmt" "io/ioutil" - "log" "os" "os/exec" "strconv" @@ -98,7 +97,7 @@ func main() { czCommit.Closes = InputCloses() commit := GenerateCommit(czCommit) if err := GitCommit(commit, *amend); err != nil { - log.Println(err) + fmt.Println(err) } } @@ -221,6 +220,7 @@ func InputCloses() *string { NewLine() return &text } + NewLine() return nil } diff --git a/go.mod b/go.mod index bccc8b5..f33c4e8 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/xiaoqidun/gitcz -go 1.17 +go 1.18