How to remove special characters and space
khanakia opened this issue · comments
getting- started ##
should become getting-started
How to achieve this ?
This is already happening by default:
package main
import (
"fmt"
"github.com/gosimple/slug"
)
func main() {
text := slug.Make("getting- started ##")
fmt.Println(text) // Will print: "getting-started"
}