(bytes []byte)
| 57 | } |
| 58 | |
| 59 | func (*textMessage) UnmarshalText(bytes []byte) error { |
| 60 | if string(bytes) != "custom" { |
| 61 | return errors.New("expected 'custom'") |
| 62 | } |
| 63 | return nil |
| 64 | } |
| 65 | |
| 66 | func (*textMessage) Reset() {} |
| 67 | func (*textMessage) String() string { return "" } |