MustNormalizeURLString returns the normalized string, and panics if an error occurs. It takes an URL string as input, as well as the normalization flags.
(u string, f NormalizationFlags)
| 140 | // MustNormalizeURLString returns the normalized string, and panics if an error occurs. |
| 141 | // It takes an URL string as input, as well as the normalization flags. |
| 142 | func MustNormalizeURLString(u string, f NormalizationFlags) string { |
| 143 | result, e := NormalizeURLString(u, f) |
| 144 | if e != nil { |
| 145 | panic(e) |
| 146 | } |
| 147 | return result |
| 148 | } |
| 149 | |
| 150 | // NormalizeURLString returns the normalized string, or an error if it can't be parsed into an URL object. |
| 151 | // It takes an URL string as input, as well as the normalization flags. |
searching dependent graphs…