https://github.com/travisjeffery/slug
slug generator for go
https://github.com/travisjeffery/slug
Last synced: 7 months ago
JSON representation
slug generator for go
- Host: GitHub
- URL: https://github.com/travisjeffery/slug
- Owner: travisjeffery
- Created: 2015-06-25T02:30:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-25T02:30:34.000Z (over 10 years ago)
- Last Synced: 2025-02-26T10:39:40.526Z (11 months ago)
- Language: Go
- Size: 926 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slug
slug generator
## Installation
$ go get github.com/travisjeffery/slug
## API
#### slug.Slugify(str, replacement, seperator string)
```go
Slugify("foo bar", "", "")
// > foo-bar
Slugify("foo bar", "", "_")
// > foo_bar
Slugify("foo bar", "o", "")
// > f-bar
```
## Tests
$ go test
## License
MIT