File: strcase.go

package info (click to toggle)
golang-github-anacrolix-missinggo 2.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 836 kB
  • sloc: makefile: 4
file content (11 lines) | stat: -rw-r--r-- 172 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
package missinggo

import (
	"strings"

	"github.com/huandu/xstrings"
)

func KebabCase(s string) string {
	return strings.Replace(xstrings.ToSnakeCase(s), "_", "-", -1)
}