mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +00:00
assignment the result
This commit is contained in:
parent
07aa189b6f
commit
4401bfccda
2
fix.go
2
fix.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user