Open bitnom opened 7 years ago
For...
func doUpdate(url string) error { resp, err := http.Get(url) if err != nil { return err } defer resp.Body.Close() err := update.Apply(resp.Body, update.Options{}) if err != nil { // error handling } return err }
I get: no new variables on left side of :=
Had to change the second usage of err to err2
No need to change variable name. Just use "=" instead of ":="
For...
I get: no new variables on left side of :=