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) }