1
0
mirror of https://github.com/ceph/ceph-csi.git synced 2024-12-22 13:00:19 +00:00
ceph-csi/vendor/github.com/stoewer/go-strcase/kebab.go

15 lines
380 B
Go
Raw Normal View History

// Copyright (c) 2017, A. Stoewer <adrian.stoewer@rz.ifi.lmu.de>
// All rights reserved.
package strcase
// KebabCase converts a string into kebab case.
func KebabCase(s string) string {
return delimiterCase(s, '-', false)
}
// UpperKebabCase converts a string into kebab case with capital letters.
func UpperKebabCase(s string) string {
return delimiterCase(s, '-', true)
}