12 lines
172 B
Go
Raw Normal View History

2022-03-10 10:44:48 +01:00
package missinggo
import (
"strings"
"github.com/huandu/xstrings"
)
func KebabCase(s string) string {
return strings.Replace(xstrings.ToSnakeCase(s), "_", "-", -1)
}