add MediaLofi in kontor-gin (#97)
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

Co-authored-by: Thomas Peetz <thomas.peetz@cimt-ag.de>
Reviewed-on: #97
This commit was merged in pull request #97.
This commit is contained in:
2026-10-09 16:26:11 +00:00
parent 7116869b42
commit bc88c694ee
30 changed files with 689 additions and 279 deletions
+22
View File
@@ -0,0 +1,22 @@
package helpers
import (
"log/slog"
"net/url"
)
func StripUrl(webLink string, keepParam string) string {
u, err := url.Parse(webLink)
if err != nil {
slog.Info("StripUrl", "error", err)
return webLink
}
values := u.Query()
for key := range values {
if key != keepParam {
values.Del(key)
}
}
u.RawQuery = values.Encode()
return u.String()
}