YTSFlix_Go/vendor/github.com/anacrolix/missinggo/strcase.go

12 lines
172 B
Go
Raw Normal View History

2018-11-04 14:58:15 +00:00
package missinggo
import (
"strings"
"github.com/huandu/xstrings"
)
func KebabCase(s string) string {
return strings.Replace(xstrings.ToSnakeCase(s), "_", "-", -1)
}