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:
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