remove old unused code

This commit is contained in:
yusing
2025-01-09 13:58:27 +08:00
parent 9d701ad671
commit 2ce1ceb460
3 changed files with 0 additions and 205 deletions

View File

@@ -1,7 +1,6 @@
package strutils
import (
"net/url"
"strings"
"golang.org/x/text/cases"
@@ -22,14 +21,6 @@ func Title(s string) string {
return cases.Title(language.AmericanEnglish).String(s)
}
func ExtractPort(fullURL string) (int, error) {
url, err := url.Parse(fullURL)
if err != nil {
return 0, err
}
return Atoi(url.Port())
}
func ToLowerNoSnake(s string) string {
return strings.ToLower(strings.ReplaceAll(s, "_", ""))
}