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.
Before you can build this project, you must install and configure the following dependencies on your machine:
- Install Go: Install Golang in your machine.
- Download dependencies using
go get
Build and Run the following command to start
go build
./fx-go
Learn more about Uber/fx framework.
Golang official webbsite.