An open API service indexing awesome lists of open source software.

https://github.com/lakshmichandrakala/go-parameterize

Go implementation of Ruby's String.parameterize
https://github.com/lakshmichandrakala/go-parameterize

go golang parameterize ror ruby ruby-on-rails string

Last synced: 10 days ago
JSON representation

Go implementation of Ruby's String.parameterize

Awesome Lists containing this project

README

          

# 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"