UnmarshalText implements encoding.TextUnmarshaler.
(data []byte)
| 15 | |
| 16 | // UnmarshalText implements encoding.TextUnmarshaler. |
| 17 | func (uuid *UUID) UnmarshalText(data []byte) error { |
| 18 | id, err := ParseBytes(data) |
| 19 | if err != nil { |
| 20 | return err |
| 21 | } |
| 22 | *uuid = id |
| 23 | return nil |
| 24 | } |
| 25 | |
| 26 | // MarshalBinary implements encoding.BinaryMarshaler. |
| 27 | func (uuid UUID) MarshalBinary() ([]byte, error) { |
nothing calls this directly
no test coverage detected