Documentation
¶
Overview ¶
Package kace provides common case conversion functions which take into consideration common initialisms.
Example ¶
package main
import (
"fmt"
"github.com/codemodus/kace"
)
func main() {
s := "this is a test."
fmt.Println(kace.Camel(s, false))
fmt.Println(kace.Camel(s, true))
fmt.Println(kace.Snake(s))
fmt.Println(kace.SnakeUpper(s))
fmt.Println(kace.Kebab(s))
fmt.Println(kace.KebabUpper(s))
}
Output: thisIsATest ThisIsATest this_is_a_test THIS_IS_A_TEST this-is-a-test THIS-IS-A-TEST
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KebabUpper ¶
KebabUpper returns a kebab cased string with all upper case letters.
func SnakeUpper ¶
SnakeUpper returns a snake cased string with all upper case letters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.