modules
are the entry points.
fx provide:
instance
using the lib’s client (one client).package gateways import ( "go.uber.org/fx" ) var GatewayModule = fx.Provide( NewSomeGateWay )
After you inject the gateway
, you call the gateway.method
directly.