diff --git a/sql_sequrity.go b/sql_sequrity.go new file mode 100644 index 0000000..b05a4d0 --- /dev/null +++ b/sql_sequrity.go @@ -0,0 +1,13 @@ +package restutility + +import ( + "strings" +) + +func SQLProtect(in string) string { + patern := "\"';&*<>=\\`:" + for _, c := range patern { + in = strings.Replace(in, string(c), "", -1) + } + return in +}