gosimple / slug

URL-friendly slugify with multiple languages support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"
}