Skip to content

Commit

Permalink
debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
bheni committed Jan 8, 2024
1 parent e8f248b commit e3f84e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion go/utils/genminver_validation/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"fmt"
"log"
"os"
"reflect"
Expand Down Expand Up @@ -35,9 +36,13 @@ func main() {

fileContents := strings.Join(lines, "\n")

err = os.WriteFile("../minver_validation.txt", []byte(fileContents), 0644)
fmt.Printf("New contents of '%s'\n%s\n", outFile, fileContents)

err = os.WriteFile(outFile, []byte(fileContents), 0644)

if err != nil {
log.Fatal("Error writing "+outFile+":", err)
}

fmt.Printf("'%s' written successfully", outFile)
}

0 comments on commit e3f84e2

Please sign in to comment.