Categorygithub.com/mozillazg/go-slugify
modulepackage
0.2.0
Repository: https://github.com/mozillazg/go-slugify.git
Documentation: pkg.go.dev

# README

go-slugify

Build Status Coverage Status Go Report Card GoDoc

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
}

# Packages

No description provided by the author

# Functions

Slugify implements make a pretty slug from the given text.
Version return version.

# Variables

ReDupSeparatorChar match duplicate separator string.
ReInValidChar match invalid slug string.
Separator separator between words.
SeparatorForRe for regexp.