harbor run -t openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-3227harbor download openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-3227Implement the following functionality in Go to meet the requirements of the provided test code. The solution should be placed in the /app/ directory:
Read Inputs: Create a function readInputs(filename string) string that reads the contents of the specified file (e.g., "input.txt") and returns it as a single string.
Parse Inputs: Implement the function parseInputs(input string) []Food which takes the input string and parses it into a slice of Food structures. Each Food structure should contain information about ingredients and their associated allergens. Define the Food struct appropriately.
Get Allergens: Create the function getAllergens(foodSlice []Food) map[string][]string that takes a slice of Food and returns a map where the keys are allergen names and the values are slices of food items that contain those allergens.
Count Non-Allergens: Implement the function countNonAllergens(allergens map[string][]string, foodSlice []Food) int which counts and returns the total number of ingredients in foodSlice that are not associated with any allergens found in the allergens map.
Assign Allergens: Create the function assignAllergens(allergens map[string][]string) map[string]string that assigns allergens to food items in a way that each allergen is associated with only one food item, returning a map of allergen-food pairs.
Summarize Assignments: Build the function summarise(assignments map[string]string) string that takes the allergen-food assignments and returns a comma-separated string of the food items associated with allergens, sorted in alphabetical order.
You will need to ensure that all functions work together seamlessly to pass the provided unit tests in TestPart1 and TestPart2. Each function should handle inputs and outputs as specified, and you may need to create your own data structures to represent the food and allergens appropriately.
Important: declare your solution in package main (the test file uses package main, so the implementation must use the matching package name).