gobridge
What is GoBridge
GoBridge is a client code generation for HTTP in situations where gRPC is not desired. Currently Angular (typescipt) is only supported client application.
Tutorial:
1. Clone the repo or copy the binary directly from ./bin/
git clone https://github.com/andrewwormald/gobridge.git
2. Build the binary
go build -o bin/gobridge main.go
./bin/gobridge --api="./example/backend/example.go" --mod="gobridge" --ts="./frontend/services/example.ts" --ts_service="Example" --server="./backend/example/server/server_gen.go"
4. It will take delcarations like this:
GoBridge will output this for Angular (typescript)
GoBridge will output this as the server side implementation