Must returns uuid if err is nil and panics otherwise.
(uuid UUID, err error)
| 208 | |
| 209 | // Must returns uuid if err is nil and panics otherwise. |
| 210 | func Must(uuid UUID, err error) UUID { |
| 211 | if err != nil { |
| 212 | panic(err) |
| 213 | } |
| 214 | return uuid |
| 215 | } |
| 216 | |
| 217 | // Validate returns an error if s is not a properly formatted UUID in one of the following formats: |
| 218 | // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
no outgoing calls