MarshalText implements the text marshaller method
()
| 58 | |
| 59 | // MarshalText implements the text marshaller method |
| 60 | func (x PreviewSize) MarshalText() ([]byte, error) { |
| 61 | return []byte(x.String()), nil |
| 62 | } |
| 63 | |
| 64 | // UnmarshalText implements the text unmarshaller method |
| 65 | func (x *PreviewSize) UnmarshalText(text []byte) error { |