sql_sequrity.go 200 Bytes edit raw blame history 1 2 3 4 5 6 7 8 9 10 11 12 13 package restutility import ( "strings" ) func SQLSafeString(in string) string { patern := "\"';&*<>=\\`:" for _, c := range patern { in = strings.Replace(in, string(c), "", -1) } return in }