Discover Packages
github.com/petoem/cleanurl
package
module
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Jan 29, 2026
License: MPL-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Clean URL
Copy Clean Link for Go, automatically removes tracking parameters like utm_source, si, and utm_campaign from a URL.
Uses tracking parameter lists from Firefox and Brave. See ./internal/lists directory.
Usage
link, _ := url.Parse("https://youtu.be/dQw4w9WgXcQ?si=YxOc4tn6Bg0zqKor")
cleanlink := cleanurl.CopyCleanURL(link)
fmt.Println(cleanlink) // https://youtu.be/dQw4w9WgXcQ
Expand ▾
Collapse ▴
Documentation
¶
CleanURL returns u with tracking parameters removed.
CopyCleanURL returns a copy of u with tracking parameters removed.
Source Files
¶
Directories
¶
internal
Click to show internal directories.
Click to hide internal directories.