jonson-generate
A code generator used for jonson.
The generator will generate code stubs for API calls and provided types.
Installation
go install github.com/doejon/jonson-generate@latest
will install the latest version of the generator.
Make sure you do have your go binaries accessible by adding
the go binaries to your path:
export PATH="$HOME/go/bin:$PATH"
Usage
Ideally, you drop a file into the directory you want to generate with go generate ./...
The file's content should look similar to the example below:
package example
//go:generate go run github.com/doejon/jonson-generate
Tag systems exposing API endpoints with // @generate
.
Tag types which will be provided by a provider with // @generate
.
Current limitations
The generator currently only works with the default method name used within jonson.
Dedication
The whole idea for this library was born after a long iteration period with dear friends.
It is heavily influenced by one of the best mentors of my (professional) life.