Skip to content

Commit

Permalink
Merge pull request #157 from karldoenitz/feature-v2.0.1
Browse files Browse the repository at this point in the history
代码规划化处理
  • Loading branch information
karldoenitz authored Nov 9, 2024
2 parents 413c4c6 + fc10e30 commit fbf90cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions external_tools/tiger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package main
import (
"fmt"
"github.com/karldoenitz/Tigo/web"
"io/ioutil"
"os"
"os/exec"
"strings"
Expand Down Expand Up @@ -342,7 +341,7 @@ func execConf(arg string) {
_, _ = f.WriteString(fmt.Sprintf(configCodeYaml, web.MD5m16(currentTime), workDir, workDir, workDir))
}
_ = f.Close()
content, err := ioutil.ReadFile(fmt.Sprintf("%s/main.go", workDir))
content, err := os.ReadFile(fmt.Sprintf("%s/main.go", workDir))
if err != nil {
fmt.Printf("read file error:%v\n", err)
return
Expand Down

0 comments on commit fbf90cc

Please sign in to comment.