(value []byte)
| 67 | } |
| 68 | |
| 69 | func NewError(value []byte) *Resp { |
| 70 | r := &Resp{} |
| 71 | r.Type = TypeError |
| 72 | r.Value = value |
| 73 | return r |
| 74 | } |
| 75 | |
| 76 | func NewErrorf(format string, args ...interface{}) *Resp { |
| 77 | return NewError([]byte(fmt.Sprintf(format, args...))) |
no outgoing calls