mirror of
https://github.com/foomo/gotsrpc.git
synced 2025-10-16 12:35:35 +00:00
| cmd | ||
| config | ||
| demo | ||
| .gitignore | ||
| code.go | ||
| go.go | ||
| gotsrpc.go | ||
| model.go | ||
| reader_test.go | ||
| README.md | ||
| servicereader.go | ||
| typereader.go | ||
| typescript.go | ||
Go TypeScript RPC
Where to define this ?!
gotsrpc -ts-target path/to/local/whatever.ts -ts-module My.Module.Foo my/package/path ServiceStructA [ServiceStructB ...]
gotsrpc build gotsrpc.yml
---
# gotsrpc.yml
targets:
-
package: my/package/path
expose:
- ServiceStructA
- ServiceStructB
ts:
module: My.Module.Foo
target: path/to/local/whatever.ts