Skip to content

baloo32/snakey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snakey

GoDoc

This is a helper class to convert text to snake_case, removing any non-alphanumeric characters and spaces.

To use, import the package:

import (
  github.com/baloo32/snakey
)

Use method TextToSnake passing a string to receive a snake_case response:

s := "This is my string-example!!!"
res := snakey.TextToSnake(s)

Output

this_is_my_string_example

About

Convert text to snake_case

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages