gobridge

command module
v0.0.0-...-5ded2de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL