Skip to content

Go library which slugifies a string in a form appropriate for a URL.

Notifications You must be signed in to change notification settings

mgechev/slugify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Slugify

Go library which transforms a text in a form appropriate for a URL.

Usage

Get the package with:

go get github.com/mgechev/slugify

Use in your source code with:

import "github.com/mgechev/slugify

slugify.Transform("Random string") // random-string
slugify.Transform("Случаен низ") // sluchaen-niz
slugify.Transform("Случаен низ с <3") // sluchaen-niz-s-love
slugify.Transform("I don't like 🕺") // i-dont-like

License

MIT

About

Go library which slugifies a string in a form appropriate for a URL.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages