FIXME(dlc) - This could probably be more efficient. Encode Deprecated: Encoded connections are no longer supported.
(subject string, v any)
| 33 | // |
| 34 | // Deprecated: Encoded connections are no longer supported. |
| 35 | func (ge *GobEncoder) Encode(subject string, v any) ([]byte, error) { |
| 36 | b := new(bytes.Buffer) |
| 37 | enc := gob.NewEncoder(b) |
| 38 | if err := enc.Encode(v); err != nil { |
| 39 | return nil, err |
| 40 | } |
| 41 | return b.Bytes(), nil |
| 42 | } |
| 43 | |
| 44 | // Decode |
| 45 | // |