MarshalText implements the encoding.TextMarshaler interface. The encoding is the same as returned by the String() method.
()
| 56 | // MarshalText implements the encoding.TextMarshaler interface. |
| 57 | // The encoding is the same as returned by the String() method. |
| 58 | func (u UUID) MarshalText() ([]byte, error) { |
| 59 | return []byte(u.String()), nil |
| 60 | } |
| 61 | |
| 62 | // UnmarshalText implements the encoding.TextUnmarshaler interface. |
| 63 | // Following formats are supported: |