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

https://github.com/travisjeffery/slug

slug generator for go
https://github.com/travisjeffery/slug

Last synced: 7 months ago
JSON representation

slug generator for go

Awesome Lists containing this project

README

          

# slug

slug generator

## Installation

$ go get github.com/travisjeffery/slug

## API

#### slug.Slugify(str, replacement, seperator string)

```go
Slugify("foo bar", "", "")
// > foo-bar
Slugify("foo bar", "", "_")
// > foo_bar
Slugify("foo bar", "o", "")
// > f-bar
```

## Tests

$ go test

## License

MIT