Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozillazg/go-slugify
Pretty Slug.
https://github.com/mozillazg/go-slugify
Last synced: about 1 month 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-13T18:54:09.000Z (over 4 years ago)
- Last Synced: 2024-07-31T01:29:11.005Z (3 months ago)
- Language: Go
- Homepage: https://godoc.org/github.com/mozillazg/go-slugify
- Size: 5.86 KB
- Stars: 93
- 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 - mozillazg/go-slugify - Pretty Slug. (Go)
- 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
==============[![Build Status](https://travis-ci.org/mozillazg/go-slugify.svg?branch=master)](https://travis-ci.org/mozillazg/go-slugify)
[![Coverage Status](https://coveralls.io/repos/mozillazg/go-slugify/badge.svg?branch=master)](https://coveralls.io/r/mozillazg/go-slugify?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/mozillazg/go-slugify)](https://goreportcard.com/report/github.com/mozillazg/go-slugify)
[![GoDoc](https://godoc.org/github.com/mozillazg/go-slugify?status.svg)](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
}
```