This commit is contained in:
4
main.go
4
main.go
@@ -328,14 +328,14 @@ func main() {
|
|||||||
// Load the JSON data from file
|
// Load the JSON data from file
|
||||||
file, err := os.Open(*inputFile)
|
file, err := os.Open(*inputFile)
|
||||||
if err != nil {
|
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)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
|
|
||||||
byteValue, err := io.ReadAll(file)
|
byteValue, err := io.ReadAll(file)
|
||||||
if err != nil {
|
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)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user