slugify

package module
Version: v0.0.0-...-855f152 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2018 License: MIT Imports: 3 Imported by: 0

README

slugify

A Go slugify application that handles string

Build Status

Example:

package main

import (
	"fmt"
	"github.com/avelino/slugify"
)

func main() {
	text := "Example slugify"
	fmt.Printf(text + ": " + slugify.Slugify(text))
}

Documentation

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Slugify

func Slugify(text string) string

Slugify a string. The result will only contain lowercase letters, digits and dashes. It will not begin or end with a dash, and it will not contain runs of multiple dashes.

It is NOT forced into being ASCII, but may contain any Unicode characters, with the above restrictions.

func Slugifyf

func Slugifyf(format string, a ...interface{}) string

Slugifyf slugfy a formated string

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL