by wing328hk on 4/21/21, 4:38 PM with 0 comments
We've just added a Go Echo server generator [1] to the openapi-generator project [2].
Please give it a try by following 3 simple steps below:
1. Download the Java JAR: https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/5.1.1-SNAPSHOT/openapi-generator-cli-5.1.1-20210421.135227-116.jar
2. Rename the JAR as "openapi-generator-cli.jar"
3. Execute the following command to run the generator for the Petstore API: https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml
Mac/Linux:
$ java -jar openapi-generator-cli.jar generate -g go-echo-server -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /var/tmp/go-echo-server/
Windows:
$ java -jar openapi-generator-cli.jar generate -g go-echo-server -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o C:\tmp\go-echo-server
If you've any feedback or question, please let us know via https://github.com/OpenAPITools/openapi-generator/issues/new.
Thank you Farshad Nematdoust [3] for contributing the Go Echo server generator [4].
[1] https://github.com/labstack/echo
[2] https://github.com/openapitools/openapi-generator/
[3] https://github.com/ph4r5h4d
[4] https://github.com/OpenAPITools/openapi-generator/pull/9224