client-generator

command
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

README

Client and Example Generator

To run the code generation, from the repo root issue:

go install ./cmd/client-generator; client-generator .

The general flow is that protos get turned to an openapi json and this generator takes the JSON and creates go and typescript clients.

Most of the templating is done with go text templates, but the harder parts like recursive type definitions are done by functions. Go and JS are similar enough to share most of the code but PHP proved to be a harder case (see unfinished https://github.com/m3o/m3o/pull/71)

CI happens in this workflow https://github.com/m3o/m3o/blob/main/.github/workflows/generate.yml.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL