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

Function ExampleMustNormalizeURLString

example_test.go:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func ExampleMustNormalizeURLString() {
19 normalized := MustNormalizeURLString("hTTpS://someWEBsite.com:443/Amazing%fa/url/",
20 FlagsUnsafeGreedy)
21 fmt.Print(normalized)
22
23 // Output: http://somewebsite.com/Amazing%FA/url
24}
25
26func ExampleNormalizeURL() {
27 if u, err := url.Parse("Http://SomeUrl.com:8080/a/b/.././c///g?c=3&a=1&b=9&c=0#target"); err != nil {

Callers

nothing calls this directly

Calls 1

MustNormalizeURLStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…