https://github.com/medmes/fx-go
a Dependency Injection Demo in Go using Uber/fx
https://github.com/medmes/fx-go
configs dependency-injection fx golang logging microservice uber uber-go
Last synced: about 1 year ago
JSON representation
a Dependency Injection Demo in Go using Uber/fx
- Host: GitHub
- URL: https://github.com/medmes/fx-go
- Owner: medmes
- Created: 2020-05-29T18:48:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-09T12:31:50.000Z (over 5 years ago)
- Last Synced: 2025-02-01T11:16:12.839Z (about 1 year ago)
- Topics: configs, dependency-injection, fx, golang, logging, microservice, uber, uber-go
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fx-go
This demo is for purpose to show how to manage dependency injection in Go using **uber/fx** framework, which use reflection based toolkit [uber/dig](https://github.com/uber-go/dig).
## Quick Start
### Developement
Before you can build this project, you must install and configure the following dependencies on your machine:
1. [Install Go](install-go.md): Install Golang in your machine.
2. Download dependencies using ``` go get ```
Build and Run the following command to start
```
go build
```
```
./fx-go
```
## More details
Learn [more about Uber/fx framework](https://github.com/uber-go/fx).
Golang [official webbsite](https://golang.org/).