mozillazg / Go Slugify
Licence: mit
Pretty Slug.
Stars: ✭ 65
Programming Languages
go
31211 projects - #10 most used programming language
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-slugify
Usage
package main
import (
"fmt"
"github.com/mozillazg/go-slugify"
)
func main() {
s := "北京kožušček,abc"
fmt.Println(slugify.Slugify(s))
// Output: bei-jing-kozuscek-abc
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].