Skip to content

peferron/slug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slug GoDoc Build Status Coverage Status

slug is a Go library for generating URL-friendly slugs.

Examples

Before and after:

  • A Lovely Daya-lovely-day
  • Living in 北京living-in-bei-jing

Usage

package main

import "github.com/peferron/slug"

func main() {
    s := slug.Generate("Hello World")
    print(s) // Prints "hello-world"
}

See the full API reference.

About

Generate URL-friendly slugs in Go.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages