translit

package
v0.0.0-...-b553abb Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package translit replaces characters in a string using a huge conversion table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Runes

func Runes(str []rune) []rune

Runes replaces characters in a string using a conversion table, e.g. ™ => tm; © => c; @ => at; € => euro Magento compatible

func URL

func URL(str []rune) []rune

URL same as Runes() but removes after conversion any non 0-9A-Za-z characters and replaces them with a dash. Magento compatible. This function is responsible for the slug generation for product/category/cms URLs.

func URLUnicode

func URLUnicode(str []rune) []rune

URLUnicode takes care of unicode characters. @todo

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL