Skip to content

9ssi7/slug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slug

Go Reference Go Report Card Apache License

Slug is a simple, lightweight, and fast slug generator for Go.

Installation

go get github.com/9ssi7/slug

Usage

packslug main

import (
    "fmt"

    "github.com/9ssi7/slug"
)

func main() {
    fmt.Println(slug.New("Hello World!"))
    // Output: hello-world

    // check if a string is a valid slug
    res := slug.Is("hello-world") // true
}

Documentation

Documentation is available at pkg.go.dev.

Contributing

Contributions are always welcome!

License

MIT

About

Slug is a simple, lightweight, and fast slug generator for Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages