Skip to content

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

License

Notifications You must be signed in to change notification settings

andrewwormald/gobridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gobridge

alt text

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

3. Run it with filling out the relevant information in the flags

./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:

alt text

GoBridge will output this for Angular (typescript)

alt text

GoBridge will output this as the server side implementation

alt text

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published