New creates a new random UUID or panics. New is equivalent to the expression uuid.Must(uuid.NewRandom())
()
| 11 | // |
| 12 | // uuid.Must(uuid.NewRandom()) |
| 13 | func New() UUID { |
| 14 | return Must(NewRandom()) |
| 15 | } |
| 16 | |
| 17 | // NewString creates a new random UUID and returns it as a string or panics. |
| 18 | // NewString is equivalent to the expression |