api: struct.go -> proxy_gen.go

This commit is contained in:
Łukasz Magiera 2021-03-25 15:11:37 +01:00
parent 7a23b411ae
commit c25190bd8c
3 changed files with 2 additions and 2 deletions

View File

@ -54,12 +54,12 @@ func (v *Visitor) Visit(node ast.Node) ast.Visitor {
} }
func main() { func main() {
// latest (v1) // 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) fmt.Println("error: ", err)
} }
// v0 // 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) fmt.Println("error: ", err)
} }
} }