1
0
mirror of https://github.com/beego/bee.git synced 2024-11-29 22:01:28 +00:00

fix the miss arguments

This commit is contained in:
astaxie 2016-01-08 11:40:49 +08:00
parent b305152fe7
commit 07aa189b6f

2
fix.go
View File

@ -135,7 +135,7 @@ func fixFile(file string) error {
pareg = regexp.MustCompile(`Input.Params\)`) pareg = regexp.MustCompile(`Input.Params\)`)
fixed = pareg.ReplaceAllString(fixed, "Input.Params())") fixed = pareg.ReplaceAllString(fixed, "Input.Params())")
// replace the v.Apis in docs.go // replace the v.Apis in docs.go
if strings.Contains("docs.go") { if strings.Contains(file, "docs.go") {
strings.Replace(fixed, "v.Apis", "v.APIs", -1) strings.Replace(fixed, "v.Apis", "v.APIs", -1)
} }
err = os.Truncate(file, 0) err = os.Truncate(file, 0)