(v []int)
| 56 | } |
| 57 | |
| 58 | func (e *hashEncoder) Encode(v []int) (string, error) { |
| 59 | id, err := e.h.Encode(v) |
| 60 | if err != nil { |
| 61 | return "", err |
| 62 | } |
| 63 | return id, nil |
| 64 | } |
| 65 | |
| 66 | func (e *hashEncoder) Decode(raw string, t int) (int, error) { |
| 67 | res, err := e.h.DecodeWithError(raw) |