From 486785c38a90bc57b24abbd3e830adee4abe6598 Mon Sep 17 00:00:00 2001 From: Marcin Federowicz Date: Thu, 2 Nov 2023 00:27:31 +0100 Subject: [PATCH] rename var JSONInstruction --- test/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/utils.go b/test/utils.go index af8b60a32..9b8176950 100644 --- a/test/utils.go +++ b/test/utils.go @@ -141,7 +141,7 @@ type instruction struct { } // structure used when we parse json object insted of classic MATCH string -type JsonInstruction struct { +type JSONInstruction struct { Match string `json:"MATCH"` Category string `json:"Category"` Confidence float64 `json:"Confidence"` @@ -210,7 +210,7 @@ func parseInstructions(t *testing.T, filename string, src []byte) []instruction func extractInstructionFromJson(line string, lineNumber int) (instruction, error) { // Use the json.Unmarshal function to parse the JSON into the struct - var jsonInst JsonInstruction + var jsonInst JSONInstruction if err := json.Unmarshal([]byte(line), &jsonInst); err != nil { fmt.Println("Error parsing JSON:", err) }