diff --git a/api/struct.go b/api/proxy_gen.go similarity index 100% rename from api/struct.go rename to api/proxy_gen.go diff --git a/api/v0api/struct.go b/api/v0api/proxy_gen.go similarity index 100% rename from api/v0api/struct.go rename to api/v0api/proxy_gen.go diff --git a/gen/api/proxygen.go b/gen/api/proxygen.go index fb624c808..d17807b44 100644 --- a/gen/api/proxygen.go +++ b/gen/api/proxygen.go @@ -54,12 +54,12 @@ func (v *Visitor) Visit(node ast.Node) ast.Visitor { } func main() { // latest (v1) - if err := generate("./api", "api", "api", "./api/struct.go"); err != nil { + if err := generate("./api", "api", "api", "./api/proxy_gen.go"); err != nil { fmt.Println("error: ", err) } // v0 - if err := generate("./api/v0api", "v0api", "v0api", "./api/v0api/struct.go"); err != nil { + if err := generate("./api/v0api", "v0api", "v0api", "./api/v0api/proxy_gen.go"); err != nil { fmt.Println("error: ", err) } }