1
0
mirror of https://github.com/beego/bee.git synced 2024-12-23 01:30:50 +00:00

assignment the result

This commit is contained in:
astaxie 2016-01-08 11:44:38 +08:00
parent 07aa189b6f
commit 4401bfccda

2
fix.go
View File

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