You can try to run this example like this.
go build .. ./atgen gen --templateDir=./template
Run generated test code by this command.
Files of this example
- An example HTTP API Server. This is from https://www.codementor.io/codehakase/building-a-restful-api-with-golang-a6yivzqdo and I made a few changes.
- This defines requests/responses to test.
- This is a template of test code. See comments in this file how to write template code.