Must returns uuid if err is nil and panics otherwise.
(uuid UUID, err error)
| 180 | |
| 181 | // Must returns uuid if err is nil and panics otherwise. |
| 182 | func Must(uuid UUID, err error) UUID { |
| 183 | if err != nil { |
| 184 | panic(err) |
| 185 | } |
| 186 | return uuid |
| 187 | } |
| 188 | |
| 189 | // Validate returns an error if s is not a properly formatted UUID in one of the following formats: |
| 190 | // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
no outgoing calls