ParseDUuidFromString parses and returns the *DUuid Datum value represented by the provided input string, or an error.
(s string)
| 227 | // ParseDUuidFromString parses and returns the *DUuid Datum value represented |
| 228 | // by the provided input string, or an error. |
| 229 | func ParseDUuidFromString(s string) (*DUuid, error) { |
| 230 | uv, err := uuid.FromString(s) |
| 231 | if err != nil { |
| 232 | return nil, makeParseError(s, types.Uuid, err) |
| 233 | } |
| 234 | return NewDUuid(DUuid{uv}), nil |
| 235 | } |
| 236 | |
| 237 | // ParseDUuidFromBytes parses and returns the *DUuid Datum value represented |
| 238 | // by the provided input bytes, or an error. |
no test coverage detected