2024-05-15 23:37:42 +00:00
|
|
|
package slowtwitch
|
|
|
|
|
|
|
|
import "strings"
|
|
|
|
|
|
|
|
func ConvertUrlToCategoryFormat(oldUrl string) string {
|
|
|
|
output := strings.ReplaceAll(oldUrl, " ", "_")
|
|
|
|
output = strings.ReplaceAll(output, "$", "_")
|
|
|
|
output = strings.ReplaceAll(output, "(", "_")
|
|
|
|
output = strings.ReplaceAll(output, ")", "_")
|
|
|
|
|
2024-05-16 18:50:53 +00:00
|
|
|
return "/" + output + "/index.html"
|
2024-05-15 23:37:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func GetURL(path string) string {
|
|
|
|
return "https://www.slowtwitch.com/" + path
|
|
|
|
}
|