This commit is contained in:
4
main.go
4
main.go
@@ -328,14 +328,14 @@ func main() {
|
||||
// Load the JSON data from file
|
||||
file, err := os.Open(*inputFile)
|
||||
if err != nil {
|
||||
fmt.Printf("Failed to open input.json: %v", err)
|
||||
fmt.Printf("Failed to open input.json: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
byteValue, err := io.ReadAll(file)
|
||||
if err != nil {
|
||||
fmt.Printf("Failed to read input json: %v", err)
|
||||
fmt.Printf("Failed to read input json: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user