status-go/vendor/github.com/anacrolix/missinggo/v2/strcase.go

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)
}