mirror of
https://github.com/cert-manager/webhook-example.git
synced 2025-07-03 07:05:50 +02:00
14 lines
380 B
Go
14 lines
380 B
Go
// 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)
|
|
}
|