MCPcopy Create free account
hub / github.com/PuerkitoBio/purell / MustNormalizeURLString

Function MustNormalizeURLString

purell.go:142–148  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
142func 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.

Callers 1

Calls 1

NormalizeURLStringFunction · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…