mirror of
https://github.com/xiaoqidun/gitcz.git
synced 2024-11-22 23:46:45 +08:00
feat(替换函数): 使用新函数替换废弃函数
This commit is contained in:
parent
85015449ca
commit
8aad2018ff
3
gitcz.go
3
gitcz.go
@ -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
2
go.mod
@ -1,3 +1,3 @@
|
||||
module github.com/xiaoqidun/gitcz
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
Loading…
x
Reference in New Issue
Block a user