From e3f84e23c795bae65a1243d1a67575222980c91b Mon Sep 17 00:00:00 2001 From: Brian Hendriks Date: Mon, 8 Jan 2024 12:06:24 -0800 Subject: [PATCH] debug output --- go/utils/genminver_validation/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/go/utils/genminver_validation/main.go b/go/utils/genminver_validation/main.go index 8c6df40db20..57d0092aa06 100644 --- a/go/utils/genminver_validation/main.go +++ b/go/utils/genminver_validation/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "log" "os" "reflect" @@ -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) }