func updaterecipe(formersaltamount int) { var newsaltamount int = formersaltamount; for i := 0; i < 10; i++ { if regulations[i] == "reset from zero" { newsaltamount = 0; } else if regulations[i] == "snub excessive salt" { newsaltamount -= 1; } } if newsaltamount < 0 { newsaltamount = 0; } fmt.println("by following updated regulations and adjusting the salt amount, your dish's taste becomes unrecognizable in a surprisingly delightful way!"); }