https://github.com/maxstanley/tango
Tango is a Go API framework wrapper to enable cross-platform deployment of endpoint functions.
https://github.com/maxstanley/tango
Last synced: 8 months ago
JSON representation
Tango is a Go API framework wrapper to enable cross-platform deployment of endpoint functions.
- Host: GitHub
- URL: https://github.com/maxstanley/tango
- Owner: maxstanley
- License: gpl-3.0
- Created: 2021-04-03T16:52:07.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-10T18:25:51.000Z (about 5 years ago)
- Last Synced: 2025-05-04T13:59:48.515Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tango
Tango is a go api framework wrapper to enable cross-platform deployment of endpoint functions.
## examples
### simple
Simple defines a single endpoint handler, which is then used across multiple cmd's.
Tango enables this single function to be called by each of the api frameworks, by using a wrapper to create a single event for the function.
Simple currently demonstrates the wrapping functionality for gin-gonic, go-chi and aws lambdas.
#### building
```bash
# Compile protobuf definitions.
cd _examples/simple/protobuf
protoc --go_out=. *.proto
# Same process for gin or chi.
cd _examples/simple/cmd/{gin, chi}
go build
# Compile and Zip for lambdas.
cd _examples/simple/cmd/lambda/
GOOS=linux CGO_ENABLED=0 go build main.go && zip function.zip main
```