package webutility import ( "strings" ) var patern string = "\"';&*<>=\\`:" func SQLSafeString(s string) string { for _, c := range patern { s = strings.Replace(s, string(c), "", -1) } return s }