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.
- Host: GitHub
- URL: https://github.com/mgechev/slugify
- Owner: mgechev
- Created: 2018-05-03T23:42:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-03T23:43:32.000Z (almost 7 years ago)
- Last Synced: 2025-03-11T05:52:34.842Z (about 1 month ago)
- Topics: go, golang, slug, slugify, url
- Language: Go
- Size: 1.95 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/slugifyslugify.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