diff --git a/go/exercises/inventory/inventory.go b/go/exercises/inventory/inventory.go index 5133812..9e028d5 100644 --- a/go/exercises/inventory/inventory.go +++ b/go/exercises/inventory/inventory.go @@ -18,15 +18,15 @@ type Product struct { } var initial_inventory = [1]Product{{ELECTRONICS, "Laptop", 10, 100.0}} //Subtask 2 => Did you mean "product(s)" instead of "product names" -var inventory = initial_inventory[0:] //Subtask 5 //Subtask 3 +var inventory = initial_inventory[0:] //Subtask 3 var product_categories = map[prod_category]string{ 0: "Electronics", 1: "Groceries", 2: "Clothes", -} +} //Subtask 4 -// From here Subtask 6 +// From here on Subtask 5: func AddProduct(category prod_category, name string, quantity float32, price float32) { inventory = append(inventory, Product{category, name, quantity, price})