cmd

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoggerModule = fx.Module("logger",
	fx.Provide(
		NewLogger,
	),
)
View Source
var RootCmd = &cobra.Command{
	Use: "genesis",
	RunE: func(cmd *cobra.Command, args []string) error {
		fxOpts := getFxBaseOpts()

		fxOpts = append(fxOpts, fx.Invoke(func(*gin.Engine) {}))

		app := fx.New(fxOpts...)
		app.Run()

		return nil
	},
}

Functions

func NewLogger

func NewLogger(cfg *config.Config) (*slog.Logger, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL