You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
383 B

package main
import (
"fmt"
"piscine"
)
func main() {
fmt.Println(piscine.CamelToSnakeCase("HelloWorld"))
fmt.Println(piscine.CamelToSnakeCase("helloWorld"))
fmt.Println(piscine.CamelToSnakeCase("camelCase"))
fmt.Println(piscine.CamelToSnakeCase("CAMELtoSnackCASE"))
fmt.Println(piscine.CamelToSnakeCase("camelToSnakeCase"))
fmt.Println(piscine.CamelToSnakeCase("hey2"))
}