Skip to content

Commit

Permalink
put in empty output.txt after go build succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
bravecorvus committed May 25, 2020
1 parent 14871bc commit 25cdd09
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ import (
"time"
)

func init() {
ioutil.WriteFile("./output.txt", []byte(""), 0644)
}

func main() {
path := Pwd()
goModBytes, err := ioutil.ReadFile(path + "go.mod")
Expand All @@ -42,6 +38,8 @@ func main() {
fmt.Println(out.String())
fmt.Println("'go build' took " + time.Since(compileStart).String() + "\n")

ioutil.WriteFile("./output.txt", []byte(""), 0644)

cmd = exec.Command("./" + executableName)

var streamStdout, streamStderr []byte
Expand Down

0 comments on commit 25cdd09

Please sign in to comment.