package fixture import "fmt" // Not compiled. Both forward an error's text with no sentence of their own: // the pattern derives to a bare placeholder, which no row can vouch for. func viaSprintf(w int, err error) { jsonError(w, 400, fmt.Sprintf("%v", err)) } func viaConcat(w int, err error) { jsonError(w, 400, ""+err.Error()) } func viaVerbs(w int, err error) { jsonError(w, 400, fmt.Sprintf("%s%s", "", err)) }