An open API service indexing awesome lists of open source software.

https://github.com/bios-marcel/golang-api-facade-example

A simple example for creating an API with multiple implementations
https://github.com/bios-marcel/golang-api-facade-example

api example facade go golang pattern patterns

Last synced: 7 months ago
JSON representation

A simple example for creating an API with multiple implementations

Awesome Lists containing this project

README

          

# Golang API facade example

A simple `Greeter` interface that has two implementations, one for japanese and one for english.

The benefit of this pattern is, that the code that uses the interface can use any implementation, as
long as that implementation sticks to the contract.