Sagi Dayan
d5d1eecb89
Some checks failed
Codespell / Check for spelling errors (push) Failing after 1m26s
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
|
|
}
|