MustParseID parses a string into a [ID] and behaves similar to [ParseID], however, it panics when the id is invalid
(s string)
| 169 | // MustParseID parses a string into a [ID] and behaves similar to |
| 170 | // [ParseID], however, it panics when the id is invalid |
| 171 | func MustParseID(s string) ID { |
| 172 | if err := valid(s); err != nil { |
| 173 | panic(err) |
| 174 | } |
| 175 | return id(s) |
| 176 | } |