package fixture // Not compiled. A local is a sentence only if every assignment to it is. func mixed(w int, err error, bad bool) { msg := "the host is already held" if bad { msg = err.Error() } jsonError(w, 409, msg) } func fromMultiValue(w int, err error) { text, _ := reasonOf(err) jsonError(w, 400, text) } func reasonOf(err error) (string, bool) { return err.Error(), true } func rangeVar(w int, names []string) { for _, n := range names { jsonError(w, 400, n) } }