Get started with Fx - Fx (original) (raw)

This introduces you to the basics of Fx. In this tutorial you will:

First, get set up for the rest of the tutorial.

  1. Start a new empty project.

mkdir fxdemo cd fxdemo go mod init example.com/fxdemo

  1. Install the latest version of Fx.

go get go.uber.org/fx@latest

Now begin by creating a minimal application.