Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crufter/slugify
For pretty urls.
https://github.com/crufter/slugify
Last synced: 2 months ago
JSON representation
For pretty urls.
- Host: GitHub
- URL: https://github.com/crufter/slugify
- Owner: crufter
- License: unlicense
- Created: 2012-06-28T09:23:02.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-06-28T17:33:13.000Z (over 8 years ago)
- Last Synced: 2024-06-20T08:09:12.244Z (6 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 17
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Slugify
=======For pretty urls.
Usage
=======```
package mainimport(
"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
```