https://github.com/mozillazg/Go-slugify
Pretty Slug.
https://github.com/mozillazg/Go-slugify
Last synced: 4 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: 2025-01-05T19:42:10.046Z (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
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
}
```