feat(替换函数): 使用新函数替换废弃函数
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
xiaoqidun 2023-02-23 23:16:01 +08:00
parent 85015449ca
commit 8aad2018ff
2 changed files with 2 additions and 3 deletions

@ -5,7 +5,6 @@ import (
"bytes"
"flag"
"fmt"
"io/ioutil"
"os"
"os/exec"
"strconv"
@ -116,7 +115,7 @@ func NewLine() {
}
func GitCommit(commit string, amend bool, sign bool) (err error) {
tempFile, err := ioutil.TempFile("", "git_commit_")
tempFile, err := os.CreateTemp("", "git_commit_")
if err != nil {
return
}

2
go.mod

@ -1,3 +1,3 @@
module github.com/xiaoqidun/gitcz
go 1.19
go 1.20