package fixture // Not compiled. The closure shadows the package function of the same name, so // the recorded text of the package function is not what is spoken. func say() string { return "a recorded sentence" } func refuse(w int, err error) { say := func() string { return err.Error() } jsonError(w, 400, say()) }