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

https://github.com/rossifedericoe/go-dependecy-injection

Pet project, testing wire
https://github.com/rossifedericoe/go-dependecy-injection

gin-gonic go wire

Last synced: 3 months ago
JSON representation

Pet project, testing wire

Awesome Lists containing this project

README

        

# go-dependecy-injection
Pet project, testing wire

# Using
* Gin Framework (https://github.com/gin-gonic/gin)
* Google Wire (https://github.com/google/wire)

# Domain
There's "Car" and "Bike" entities, and each domain defines an interface: CarService and BikeService.

# DI
The gin engine is wrapped into a struct that receives all the dependencies resolved from wire.