directory/cmd/importer/main.go

34 lines
611 B
Go
Raw Permalink Normal View History

2024-06-01 23:43:00 +00:00
package main
import (
"go.uber.org/fx"
"sneak.berlin/go/directory/internal/config"
"sneak.berlin/go/directory/internal/database"
"sneak.berlin/go/directory/internal/globals"
"sneak.berlin/go/directory/internal/importer"
"sneak.berlin/go/directory/internal/logger"
)
var (
Appname string = "importer"
Version string
Buildarch string
)
func main() {
globals.Appname = Appname
globals.Version = Version
globals.Buildarch = Buildarch
fx.New(
fx.Provide(
config.New,
database.New,
globals.New,
logger.New,
importer.New,
),
fx.Invoke(func(*importer.Importer) {}),
).Run()
}