YTSFlix_Go/vendor/github.com/anacrolix/missinggo/strcase.go
2018-11-04 15:58:15 +01:00

12 lines
172 B
Go

package missinggo
import (
"strings"
"github.com/huandu/xstrings"
)
func KebabCase(s string) string {
return strings.Replace(xstrings.ToSnakeCase(s), "_", "-", -1)
}