https://github.com/mozillazg/go-slugify
Pretty Slug.
https://github.com/mozillazg/go-slugify
Last synced: 6 months ago
JSON representation
Pretty Slug.
- Host: GitHub
- URL: https://github.com/mozillazg/go-slugify
- Owner: mozillazg
- License: mit
- Created: 2016-07-16T11:55:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-13T18:54:09.000Z (about 5 years ago)
- Last Synced: 2024-12-12T16:44:16.200Z (6 months ago)
- Language: Go
- Homepage: https://godoc.org/github.com/mozillazg/go-slugify
- Size: 5.86 KB
- Stars: 94
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - go-slugify - Make pretty slug with multiple languages support. (Natural Language Processing / Slugifiers)
- zero-alloc-awesome-go - go-slugify - Make pretty slug with multiple languages support. (Natural Language Processing / Slugifiers)
- awesome-go - go-slugify - Pretty Slug. - ★ 22 (Text Processing)
- awesome-go-extra - go-slugify - 07-16T11:55:15Z|2020-05-13T18:54:09Z| (Bot Building / Slugifiers)
README
go-slugify
==============[](https://travis-ci.org/mozillazg/go-slugify)
[](https://coveralls.io/r/mozillazg/go-slugify?branch=master)
[](https://goreportcard.com/report/github.com/mozillazg/go-slugify)
[](https://godoc.org/github.com/mozillazg/go-slugify)Make Pretty Slug.
Installation
------------```
go get -u github.com/mozillazg/go-slugify
```Install CLI tool:
```
go get -u github.com/mozillazg/go-slugify/slugify
$ slugify "北京kožušček,abc"
bei-jing-kozuscek-abc
```Documentation
--------------API documentation can be found here:
https://godoc.org/github.com/mozillazg/go-slugifyUsage
------```go
package mainimport (
"fmt"
"github.com/mozillazg/go-slugify"
)func main() {
s := "北京kožušček,abc"
fmt.Println(slugify.Slugify(s))
// Output: bei-jing-kozuscek-abc
}
```