Demo entry 6787224

fx

   

Submitted by anonymous on Apr 10, 2019 at 22:38
Language: Go. Code size: 310 Bytes.

package main

import (
	"handlers"
	"metricsfx"
	"serverfx"
	"tracerfx"
	"zapfx"
	"go.uber.org/fx"
)

func main() {
	app := fx.New(
		serverfx.Module,
		metricsfx.Module,
		metricsexporter.Module,
		zapfx.Module,
		tracerfx.Module,

		fx.Provide(
			handlers.New,
		),
	)
	app.Run()
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).