Sagi Dayan
2ca1e7826a
Some checks failed
Codespell / Check for spelling errors (push) Failing after 1m35s
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
10 lines
209 B
Go
10 lines
209 B
Go
package common
|
|
|
|
import "strings"
|
|
|
|
func StrToSnakeCase(s string) string {
|
|
snake := strings.ToLower(s)
|
|
snake = strings.ReplaceAll(snake, " ", "_")
|
|
snake = strings.ReplaceAll(snake, "\t", "_")
|
|
return snake
|
|
}
|