An open API service indexing awesome lists of open source software.

https://github.com/mgechev/slugify

Go library which slugifies a string in a form appropriate for a URL.
https://github.com/mgechev/slugify

go golang slug slugify url

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# Slugify

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

## Usage

Get the package with:

```bash
go get github.com/mgechev/slugify
```

Use in your source code with:

```go
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