slugify icon indicating copy to clipboard operation
slugify copied to clipboard

For pretty urls.

Slugify

For pretty urls.

Usage

package main

import(
	"github.com/opesun/slugify"
	"fmt"
)

func main() {
	str := `This is some hungarian text with accents: "Helló, belló."`
	fmt.Println(slugify.S(str))
}

The snippet above will produce:

this-is-some-hungarian-text-with-accents-hello-bello