https://github.com/romanyx/prm
Golang string parameterizer
https://github.com/romanyx/prm
golang parameterize slug url
Last synced: 5 months ago
JSON representation
Golang string parameterizer
- Host: GitHub
- URL: https://github.com/romanyx/prm
- Owner: romanyx
- License: mit
- Created: 2017-05-20T12:35:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-18T17:53:25.000Z (almost 9 years ago)
- Last Synced: 2024-06-20T14:20:11.287Z (almost 2 years ago)
- Topics: golang, parameterize, slug, url
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://godoc.org/github.com/romanyx/prm)
[](https://travis-ci.org/romanyx/prm)
[](https://coveralls.io/github/romanyx/prm?branch=master)
# Overview
`prm` is a small golang library that replaces special characters in a string so that it may be used as part of a ‘pretty’ URL. Slug generator. It's very fast, simple and configurable.
# Usage
```go
package main
import (
"fmt"
"github.com/romanyx/prm"
)
func main() {
prm.Parameterize("Computer world", '-') // "computer-world"
}
```