ParseDUuidFromString parses and returns the *DUuid Datum value represented by the provided input string, or an error.
(s string)
| 378 | // ParseDUuidFromString parses and returns the *DUuid Datum value represented |
| 379 | // by the provided input string, or an error. |
| 380 | func ParseDUuidFromString(s string) (*DUuid, error) { |
| 381 | uv, err := uuid.FromString(s) |
| 382 | if err != nil { |
| 383 | return nil, MakeParseError(s, types.Uuid, err) |
| 384 | } |
| 385 | return NewDUuid(DUuid{uv}), nil |
| 386 | } |
| 387 | |
| 388 | // ParseDUuidFromBytes parses and returns the *DUuid Datum value represented |
| 389 | // by the provided input bytes, or an error. |
no test coverage detected
searching dependent graphs…