Skip to content
/ fx-go Public

a Dependency Injection Demo in Go using Uber/fx

Notifications You must be signed in to change notification settings

medmes/fx-go

Repository files navigation

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.

Quick Start

Developement

Before you can build this project, you must install and configure the following dependencies on your machine:

  1. Install Go: 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.

Golang official webbsite.