github.com/vcilabs/webrpc@v0.5.2-0.20201116131534-162e27b1b33b/gen/README.md (about)

     1  # `gen` - webrpc code-generation for multiple language targets
     2  
     3  `gen` uses a basic templating language, along with the webrpc schema AST (abtract-syntax-tree)
     4  to generate source code of the Web service's type system, client library and server handlers.
     5  
     6  ## Supported targets
     7  
     8  * `go` - [gen/golang](./golang)
     9  * `ts` - [gen/typescript](./typescript)
    10  * `js` - [gen/javascript](./javascript)
    11  
    12  
    13  ## Adding a new target
    14  
    15  Adding a new target is easy, just add a folder under `gen/` and copy one of the existing
    16  targets and start adapting it for your language. Run `make build` to re-generate all templates
    17  and execute the code-generator via the `go:generate` in the target package you make.