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

# README

go-slugify

Go Report Card

Make Pretty Slugs.

Installation

go get -u github.com/kong/go-slugify

Install CLI tool:

go get -u github.com/kong/go-slugify/slugify
$ slugify "北京kožušček,abc"
bei-jing-kozuscek-abc

Documentation

API documentation can be found here: https://godoc.org/github.com/kong/go-slugify

Usage

package main

import (
	"fmt"
	"github.com/kong/go-slugify"
)

func main() {
	slugifier := (&slugify.Slugifier{}).ToLower(false).InvalidChar("-").WordSeparator("-")
	s := "北京kožušček,abc"
	fmt.Println(slugifier.Slugify(s))
	// Output: bei-jing-kozuscek-abc
}

# Packages

No description provided by the author

# Functions

NewSlugifier creates a new slugifier.
Version return version.

# Structs

No description provided by the author