Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Latest commit

 

History

History
executable file
·
24 lines (17 loc) · 931 Bytes

README.md

File metadata and controls

executable file
·
24 lines (17 loc) · 931 Bytes

gobridge

alt text

What is GoBridge

GoBridge is a client code generation for HTTP in situations where gRPC is not desired. Currently Angular (TypeScript) is only supported client application.

Tutorial:

1. Clone the repo or copy the binary directly from ./bin/

git clone https://github.com/luno/gobridge.git

2. Run & have fun!

go run main.go --api="./example/backend" --mod="github.com/luno/gobridge" --ts="./example/frontend/services/example.ts" --ts_service="Example" --server="./example/backend/server/server_gen.go"

4. It will take declarations like this:

alt text

GoBridge will output this for Angular (TypeScript)

alt text

GoBridge will output this as the server side implementation

alt text