Go to file
2016-09-12 19:02:25 +02:00
cmd added flag skipgotsrpc. If true, module GoTSRPC will not be generated for any module 2016-08-09 10:43:53 +02:00
config nearing 0.1 with build file 2016-07-22 15:48:52 +02:00
demo preparing better demo 2016-07-22 09:24:33 +02:00
.gitignore some initial thoughts 2016-05-12 17:31:54 +02:00
build.go added support for constants, fixed support for map and array types 2016-09-12 12:16:38 +02:00
code.go added support for constants, fixed support for map and array types 2016-09-12 12:16:38 +02:00
go.go added support for constants, fixed support for map and array types 2016-09-12 12:16:38 +02:00
gotsrpc.go added support for constants, fixed support for map and array types 2016-09-12 12:16:38 +02:00
Makefile added a little Makefile 2016-07-22 15:55:33 +02:00
model.go adding support for recursive struct resolution across packages including import conflict resolution 2016-07-21 18:23:48 +02:00
reader_test.go reading ahead 2016-05-13 15:56:40 +02:00
README.md some initial thoughts 2016-05-12 17:31:54 +02:00
servicereader.go added support for constants, fixed support for map and array types 2016-09-12 12:16:38 +02:00
test.js nearing 0.1 with build file 2016-07-22 15:48:52 +02:00
test.ts nearing 0.1 with build file 2016-07-22 15:48:52 +02:00
typereader.go added support for constants, fixed support for map and array types 2016-09-12 12:16:38 +02:00
typescript_test.go added support for constants, fixed support for map and array types 2016-09-12 12:16:38 +02:00
typescript.go support for nested structs in ts generation 2016-09-12 19:02:25 +02:00

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