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: 20 days 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-10-03T15:40:43.087Z (about 1 month 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
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
}
```