1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 13:29:11 +01:00
Files
2022-12-03 18:04:46 -05:00

15 lines
380 B
Go
Vendored

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