lakshmichandrakala / go-parameterize

Go implementation of Ruby's String.parameterize

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-parameterize

Go implementation of Ruby's string parameterize

Replaces contiguous special characters in a string with a '-' and converts all alphabets to lower case. When there are only special characters in the original string, the result of parameterize is an empty string.

Examples: Parameterize("New York") // "new-york" Parameterize("$#@") // "" Parameterize("$#@1#$%") // "1"

About

Go implementation of Ruby's String.parameterize

License:GNU General Public License v3.0


Languages

Language:Go 100.0%