This commit is contained in:
astaxie 2016-01-25 21:05:08 +08:00
parent 46a9c4a390
commit 460aa32b7e
1 changed files with 2 additions and 0 deletions

2
fix.go
View File

@ -102,6 +102,7 @@ var rules = []string{
".UrlFor(", ".URLFor(",
".ServeJson(", ".ServeJSON(",
".ServeXml(", ".ServeXML(",
".ServeJsonp(", ".ServeJSONP(",
".XsrfToken(", ".XSRFToken(",
".CheckXsrfCookie(", ".CheckXSRFCookie(",
".XsrfFormHtml(", ".XSRFFormHTML(",
@ -150,6 +151,7 @@ var rules = []string{
"orm.Debug_Queries", "orm.DebugQueries",
"orm.COMMA_SPACE", "orm.CommaSpace",
".SendOut()", ".DoRequest()",
"validation.ValidationError", "validation.Error",
}
func fixFile(file string) error {