项目作者: extemporalgenome

项目描述 :
Go package for producing slugs, with slight sensitivity toward non-latin languages
高级语言: Go
项目地址: git://github.com/extemporalgenome/slug.git
创建时间: 2012-10-31T17:13:54Z
项目社区:https://github.com/extemporalgenome/slug

开源协议:BSD 3-Clause "New" or "Revised" License

下载


slug

See the API docs.

Latin-ish inputs should have very stable output. All inputs are passed through
an NFKD transform, and anything still in the unicode Letter and Number
categories are passed through intact. Anything in the Mark or Lm/Sk categories
(modifiers) are skipped, and runs of characters from any other categories are
collapsed to a single hyphen.