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
- Host: GitHub
- URL: https://github.com/rossifedericoe/go-dependecy-injection
- Owner: rossifedericoe
- Created: 2019-07-31T14:22:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-31T19:58:48.000Z (almost 6 years ago)
- Last Synced: 2024-01-18T12:07:46.763Z (over 1 year ago)
- Topics: gin-gonic, go, wire
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.